Hi,
I will try to explain you how to use npm to compile your scss files to css files, because of you're mixing SAAS and CSS.
- /app/resources/sass - there are scss files
- /app/resources/css - an optional folder for compiled scss
- webpack.mix.js - settings for compiling source (scss, js, ...)
I prefer to set up compilation to folder '/public/'. So you can set up it in your webpack.mix.js.
mix.js('resources/js/app.js', 'public/js')
.sass('resources/sass/app.scss', 'public/css')
.version();
This wil generate app.js in /public/js/ folder and app.css in /public/css/ folder.
If you want to change the name of css, you can change the name of your scss in /resources/saas/ folder - for example from app.scss to admin.scss - so it compiles admin.css after next 'npm run watch|dev|prod'.
After that, you can use it in you views/blade templates as:
<link href="{{ asset('css/app.css') }}" rel="stylesheet">
But, if you need to have your saas files in /app/resources/css/ folder, you can also set up it in your webpack.mix.js - source folder for saas.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…