I've run my head against the wall here.
For my project, I would like Laravel Mix/webpack to compile an .scss-file into two files, a regular, un-minified (expanded or nested) .css-file, and a minified (compressed) .min.css-file, so I essentially have both files.
I've tried with:
mix.sass('src', 'output')
.copy('output.css', 'output.min.css')
.minify('output.min.css');
However, this results in an error because the .css-file wasn't compiled.
I know Laravel Mix minifies when running npm run production but I'm interested in two files, not just the one production compiles to.
Is there any way to do this, without modifying the whole webpack config?