chore(webpack) js: set default NODE_ENV

This commit is contained in:
coderaiser 2018-12-20 17:30:07 +02:00
parent 96d8489170
commit 2aafe438fb

View file

@ -51,7 +51,10 @@ const rules = clean([
}]); }]);
const plugins = [ const plugins = [
new EnvironmentPlugin(['NODE_ENV']), new EnvironmentPlugin({
NODE_ENV: 'production'
}),
new ServiceWorkerWebpackPlugin({ new ServiceWorkerWebpackPlugin({
entry: join(__dirname, '..', 'client', 'sw', 'sw.js'), entry: join(__dirname, '..', 'client', 'sw', 'sw.js'),
excludes: ['*'], excludes: ['*'],