From 0f970d6aeb310145183cbb1ffd65c526731d989e Mon Sep 17 00:00:00 2001
From: Jean-Baptiste Pasquier <contact@jbpasquier.eu>
Date: Sat, 28 Nov 2020 21:33:51 +0000
Subject: [PATCH] cicd: disable hmr on production

---
 internal/parcel.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/internal/parcel.js b/internal/parcel.js
index 674291d7..77ef320a 100644
--- a/internal/parcel.js
+++ b/internal/parcel.js
@@ -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: '',
-- 
GitLab