diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 639daa76cc865846a51131ca293b0091fdcfc47c..8205f2542084418684549f41e3787dfede615755 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -9,7 +9,7 @@ build-dev:
     - master
   script:
     - npm install --progress=false
-    - npm run build --mode dev_server
+    - npm run build -- --mode dev_server
   artifacts:
     expire_in: 1 week
     paths:
@@ -22,7 +22,7 @@ build-prod:
     - /^release_.*$/
   script:
   - npm install --progress=false
-  - npm run build --mode production
+  - npm run build -- --mode production
   artifacts:
     expire_in: 1 week
     paths: