Skip to content

Commit

Permalink
chore: provide a way to check if the app is built as PWA or SPA
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-greffe committed Oct 12, 2024
1 parent 220fe6e commit 2b7d5c1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 2b7d5c1

Please sign in to comment.