diff --git a/config/default.js b/config/default.js index d88e8297..0b780b7f 100644 --- a/config/default.js +++ b/config/default.js @@ -389,6 +389,7 @@ module.exports = { appName, pwaAppName, pwaShortName, + buildMode: process.env.BUILD_MODE === 'pwa' ? 'pwa' : 'spa', appLogo: 'crisis-logo-color-384x192.png', appChangelog: changelog, appOnlineHelp: onlineHelp, diff --git a/package.json b/package.json index 88733f1d..1e2df2f3 100644 --- a/package.json +++ b/package.json @@ -29,8 +29,8 @@ "dev": "npm run provision && cross-env NODE_ENV=development quasar dev", "prod": "cd api && npm run prod", "build": "npm run provision && quasar build", - "pwa:dev": "npm run provision && cross-env NODE_ENV=development quasar dev -m pwa", - "pwa:build": "npm run provision && quasar build -m pwa", + "pwa:dev": "npm run provision && cross-env NODE_ENV=development BUILD_MODE=pwa quasar dev -m pwa", + "pwa:build": "npm run provision && cross-env BUILD_MODE=pwa quasar build -m pwa", "analyze": "cross-env ANALYZE_BUNDLE=1 npm run build", "lint": "standard src/**/*.js src/**/*.vue test/**/*.mjs --fix", "benchmark": "node ./benchmark",