3
I am using Laravel 5.4, which by default brings a file webpack.mix.js
which will be the files to be concatenated and their destination.
My problem is concatenating files scss
with css
, what I have in webpack.mix.js
is:
const { mix } = require('laravel-mix');
mix.autoload({});
mix.scripts([
'assets/js/jquery.min.js',
'assets/js/custom.js'
], 'public/js/app.js')
.sass([
'assets/css/app.css',
'assets/css/app.scss'
], 'public/css/app.css');
When I run npm run production
or npm run dev
the following error occurs:
Assertionerror: mix.Sass() is Missing required Parameter 1: src
If you already have the webpack.mix.js
with .css([...
instead of .sass([...
it ignores the contents of the file assets/css/app.scss
and puts only the contents of assets/css/app.css
Thanks is a solution, but what if I have two scss files? To put in the same destination css
– Hula Hula
The same applies to.
– Ian Rodrigues
"Failed at the @Production script", when I run npm Production
– Hula Hula