Browse Source

chore(frontend): fixed issue when webpack wanted a global install

Signed-off-by: Jonathan <theflametrooper@gmail.com>
Jonathan 4 years ago
parent
commit
4790987dda
2 changed files with 4 additions and 2 deletions
  1. 2 0
      frontend/Dockerfile
  2. 2 2
      frontend/package.json

+ 2 - 0
frontend/Dockerfile

@@ -7,6 +7,8 @@ RUN mkdir -p /opt
 WORKDIR /opt
 ADD package.json /opt/package.json
 
+RUN npm install -g webpack@5.27.2 webpack-cli@4.5.0
+
 RUN npm install
 
 RUN mkdir -p /run/nginx

+ 2 - 2
frontend/package.json

@@ -35,9 +35,9 @@
     "vue-hot-reload-api": "^2.3.3",
     "vue-style-loader": "^4.1.3",
     "vue-template-compiler": "^2.6.12",
-    "webpack": "^5.27.2",
+    "webpack": "5.27.2",
     "webpack-bundle-analyzer": "^4.4.0",
-    "webpack-cli": "^4.5.0",
+    "webpack-cli": "4.5.0",
     "webpack-dev-server": "^3.11.2"
   },
   "dependencies": {