Loading .env.production.lite 0 → 100644 +4 −0 Original line number Diff line number Diff line NODE_ENV=production VUE_APP_PLATFORM=web VUE_APP_TARGET=web VUE_APP_LITEMODE=true No newline at end of file .gitignore +1 −0 Original line number Diff line number Diff line .DS_Store node_modules /dist /dist-lite /app/dist /release-builds /installers/release-builds Loading package.json +1 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ "main": "./app/app.js", "scripts": { "build:web": "vue-cli-service build --mode production.web", "build:lite": "vue-cli-service build --mode production.lite", "build:app": "vue-cli-service build --mode production.app", "serve": "vue-cli-service serve --mode development.web", "start": "npm run build:app && electron app/app.js", Loading src/App.vue +3 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,9 @@ export default { }, mounted() { if (process.env.VUE_APP_LITEMODE == "true") { console.log("Built lite-mode"); } // Query CSS dark theme preference var mql = window.matchMedia("(prefers-color-scheme: dark)"); // Check for system dark theme when mounted Loading vue.config.js +10 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,15 @@ module.exports = { }) ); }, outputDir: process.env.VUE_APP_TARGET == "electron-renderer" ? "./app/dist" : "./dist", outputDir: (function() { if (process.env.VUE_APP_TARGET == "electron-renderer") { return "./app/dist"; } else if (process.env.VUE_APP_LITEMODE == "true") { return "./dist-lite"; } else { return "./dist"; } })(), publicPath: "" }; Loading
.env.production.lite 0 → 100644 +4 −0 Original line number Diff line number Diff line NODE_ENV=production VUE_APP_PLATFORM=web VUE_APP_TARGET=web VUE_APP_LITEMODE=true No newline at end of file
.gitignore +1 −0 Original line number Diff line number Diff line .DS_Store node_modules /dist /dist-lite /app/dist /release-builds /installers/release-builds Loading
package.json +1 −0 Original line number Diff line number Diff line Loading @@ -12,6 +12,7 @@ "main": "./app/app.js", "scripts": { "build:web": "vue-cli-service build --mode production.web", "build:lite": "vue-cli-service build --mode production.lite", "build:app": "vue-cli-service build --mode production.app", "serve": "vue-cli-service serve --mode development.web", "start": "npm run build:app && electron app/app.js", Loading
src/App.vue +3 −0 Original line number Diff line number Diff line Loading @@ -61,6 +61,9 @@ export default { }, mounted() { if (process.env.VUE_APP_LITEMODE == "true") { console.log("Built lite-mode"); } // Query CSS dark theme preference var mql = window.matchMedia("(prefers-color-scheme: dark)"); // Check for system dark theme when mounted Loading
vue.config.js +10 −2 Original line number Diff line number Diff line Loading @@ -20,7 +20,15 @@ module.exports = { }) ); }, outputDir: process.env.VUE_APP_TARGET == "electron-renderer" ? "./app/dist" : "./dist", outputDir: (function() { if (process.env.VUE_APP_TARGET == "electron-renderer") { return "./app/dist"; } else if (process.env.VUE_APP_LITEMODE == "true") { return "./dist-lite"; } else { return "./dist"; } })(), publicPath: "" };