Use of npm in Laravel to manage CSS
February 24, 2021
For your CSS in Laravel you can either use the public folder or use the resources/css folder and npm to manage and compile your CSS.
For this, do the following:
npm install
to install it right within your Laravel project folder npm run dev
After you did this you should see a duplicate version of your CSS-file in the public folder of your project, created by npm. To make changes to your CSS use the files in the resources/css folder, and don't forget to compile after each change, otherwise your changes won't show up.