cicd: disable hmr on production

This commit is contained in:
Jean-Baptiste Pasquier 2020-11-28 21:33:51 +00:00
parent f14f9a64dc
commit 0f970d6aeb
1 changed files with 2 additions and 2 deletions

View File

@ -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: '',