I have some issues with using React in Laravel 5.5. Every time I add or make changes to a component, I have to run npm run dev to compile the thing. When I do this the contents of css/app.css get reset, so I cannot write styles to this file.
Styles get unchanged if I have them in another CSS file, but I'd like to have my main styles written in css/app.css.
How can I do this?
css/app.cssfile. That file is generated everytime you compile your assets.npm run devyour styling assets are aggregated in one single file (css/app.css). This way in your html files you just need to add this file to the head of your document and you'll have access to all your styles.