Skip to content

Commit

Permalink
Silence npx errors
Browse files Browse the repository at this point in the history
Fixes #82
  • Loading branch information
sindresorhus committed Oct 19, 2020
1 parent 7907e3d commit 9768baa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion autoprefixer.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ const autoprefixer = require('autoprefixer');
const postcssSafeParser = require('postcss-safe-parser');
const postcssScssParser = require('postcss-scss');

childProcess.spawn('npx', ['browserslist@latest', '--update-db'], {cwd: __dirname, stdio: 'ignore'}).unref();
const subprocess = childProcess.spawn('npx', ['browserslist@latest', '--update-db'], {cwd: __dirname, stdio: 'ignore'});
subprocess.unref();
subprocess.on('error', () => {});

(async () => {
const data = await getStdin();
Expand Down

0 comments on commit 9768baa

Please sign in to comment.