You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 8, 2019. It is now read-only.
Hi,
I have a script for my deployment which compiles modules for the entry points before running the webpack compiler. I would like to run the compiler with the -p flag using the node api (https://github.com/webpack/docs/wiki/node.js-api)
I can't see an option in the webpack config for this - is there one, or another way i can provide this argument to webpack?
Here is my script:
utils.runScript('node-scripts/generate-entries.jsx', ['--harmony'], (err) => {
if (err) throw err;
console.log('entries generated');
const webpack = require('webpack');
const webpackConfig = require('../webpack.config.js');
//want to add -p to this somehow
webpack(webpackConfig, () => {
console.log('deploy completed');
});
});
Thanks,
Gilly
The text was updated successfully, but these errors were encountered:
Hi,
I have a script for my deployment which compiles modules for the entry points before running the webpack compiler. I would like to run the compiler with the -p flag using the node api (https://github.com/webpack/docs/wiki/node.js-api)
I can't see an option in the webpack config for this - is there one, or another way i can provide this argument to webpack?
Here is my script:
Thanks,
Gilly
The text was updated successfully, but these errors were encountered: