webpack: Show sassc errors

`stdio` is not a valid value for the `stdio` option. This led to sassc's
stdout/err to be hidden, and thus it did not show error messages.

Closes #403

[1] https://nodejs.org/api/child_process.html#child_process_options_stdio
This commit is contained in:
Martin Pitt 2020-12-16 17:49:02 +01:00 committed by GitHub
parent 8821db1daf
commit 50ef8a9362
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -12,7 +12,7 @@ module.exports = function() {
childProcess.execFileSync(
'sassc',
['--load-path=node_modules', '--style=compressed', '--sourcemap', this.resource, out],
{ stdio: ['pipe', 'stdio', 'stdio'] });
{ stdio: ['pipe', 'inherit', 'inherit'] });
const css = fs.readFileSync(out, 'utf8');
const cssmap = fs.readFileSync(out + ".map", 'utf8');