cicd: disable hmr on production
This commit is contained in:
parent
f14f9a64dc
commit
0f970d6aeb
@ -8,7 +8,7 @@ const options = {
|
||||
outFile: 'index.html',
|
||||
publicUrl: '/',
|
||||
watch: process.env.NODE_ENV !== 'production',
|
||||
cache: true,
|
||||
cache: process.env.NODE_ENV !== 'production',
|
||||
cacheDir: '.cache',
|
||||
contentHash: false,
|
||||
minify: process.env.NODE_ENV === 'production',
|
||||
@ -17,7 +17,7 @@ const options = {
|
||||
bundleNodeModules: false,
|
||||
https: true,
|
||||
logLevel: 3,
|
||||
hmr: true,
|
||||
hmr: process.env.NODE_ENV !== 'production',
|
||||
hmrPort: 1235,
|
||||
sourceMaps: true,
|
||||
hmrHostname: '',
|
||||
|
Loading…
Reference in New Issue
Block a user