Separate web and app targets

This commit is contained in:
Joel Collins 2019-06-02 21:15:02 +01:00
parent 200edd14b3
commit 4bdf940bdd
3 changed files with 8 additions and 1 deletions

3
.env.production.app Normal file
View file

@ -0,0 +1,3 @@
NODE_ENV=production
VUE_APP_PLATFORM=web
VUE_APP_TARGET=electron-renderer

3
.env.production.web Normal file
View file

@ -0,0 +1,3 @@
NODE_ENV=production
VUE_APP_PLATFORM=web
VUE_APP_TARGET=web

View file

@ -17,7 +17,8 @@
"dist:win": "electron-builder --win --config app/builder-config-x86_64.yaml",
"dist:dmg": "electron-builder --mac --config app/builder-config-x86_64.yaml",
"dist:appx": "electron-builder --win --config app/builder-config-appx.yaml",
"build": "vue-cli-service build",
"build:web": "vue-cli-service build --mode production.web",
"build:app": "vue-cli-service build --mode production.app",
"electron:run": "electron .",
"electron:dev": "electron app/app.dev.js",
"serve": "vue-cli-service serve"