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:
parent
8821db1daf
commit
50ef8a9362
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ module.exports = function() {
|
||||||
childProcess.execFileSync(
|
childProcess.execFileSync(
|
||||||
'sassc',
|
'sassc',
|
||||||
['--load-path=node_modules', '--style=compressed', '--sourcemap', this.resource, out],
|
['--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 css = fs.readFileSync(out, 'utf8');
|
||||||
const cssmap = fs.readFileSync(out + ".map", 'utf8');
|
const cssmap = fs.readFileSync(out + ".map", 'utf8');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue