fix(client scripts): add output and fix linting

This commit is contained in:
Matteo Pagliazzi
2019-10-24 14:29:47 +02:00
parent cab6b35e49
commit 78946bf328
2 changed files with 6 additions and 2 deletions

View File

@@ -1,5 +1,9 @@
/* eslint-disable import/no-commonjs */
const { execSync } = require('child_process');
if (process.env.NODE_ENV === 'production') {
execSync('npm run build');
execSync('npm run build', {
stdio: 'inherit',
});
}