Skip to content

Commit

Permalink
Merge pull request #9 from foyerlive/fix/x-platform
Browse files Browse the repository at this point in the history
change path to webpack script
  • Loading branch information
jturle authored Nov 11, 2020
2 parents d270d7e + 798e1cb commit 001cb9a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/bin/cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ if (program.build) {
stdio: 'inherit',
});
console.log('Build config:', program.config);
exec(`NODE_ENV=production node --max_old_space_size=4096 ${path.normalize('./node_modules/.bin/webpack')} --config ` + program.config, {
const webpackExe = path.normalize('./node_modules/webpack/bin/webpack');
const configPath = path.normalize(program.config);
exec(`NODE_ENV=production node --max_old_space_size=4096 ${webpackExe} --config ${configPath}`, {
stdio: 'inherit',
env: env,
});
Expand Down

0 comments on commit 001cb9a

Please sign in to comment.