I can't run mix.standaloneSass() by passing in an array, only a single string for one file.
It throws the error AssertionError [ERR_ASSERTION]: Whoops, you are trying to compile css/scss_test/_entry.scss, but that file does not exist.
Not sure if related: I would much prefer to use mix.sass() to take advantage of PostCSS and Autoprefixer, but this throws a different error (even with a single string rather than an array): Error: Chunk.entrypoints: Use Chunks.groupsIterable and filter by instanceof Entrypoint instead
Can easily attach any relevant files on request, not sure what's relevant and don't want to clutter up the issue.
css, with subfolder scss_testmix.standaloneSass(['css/scss_vendor/_entry.scss'], 'comp.css'). Passing in the same source file as a string instead of an array works perfectlynpm run mix, which is set to cross-env NODE_ENV=development webpack --progress --hide-modules --config=node_modules/laravel-mix/setup/webpack.config.js.This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Why isn't this a feature? There's plenty of issues here and on SO for this.
The workaround is pretty simple: just have a root file that imports the others, and compile that file
Bonus: this allows you to specify the order that the files should be combined, because otherwise it would be effectively arbitrary.
@SamWoolerton In reality there are often .scss from multiple libraries, so it totally makes sense to pass an array (instead of importing them manually inside one file). Passing an array of .scss is absolute standard in frontend workflows, it's weird that mix does it differently.
Most helpful comment
Why isn't this a feature? There's plenty of issues here and on SO for this.