mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-01-23 02:35:49 +00:00
chore(webpack) js: set default NODE_ENV
This commit is contained in:
parent
96d8489170
commit
2aafe438fb
1 changed files with 4 additions and 1 deletions
|
|
@ -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: ['*'],
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue