Skip to content

Commit

Permalink
fix: include service worker in build
Browse files Browse the repository at this point in the history
  • Loading branch information
stdavis committed Apr 5, 2023
1 parent e62ad0a commit 82f02d7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ module.exports = function (grunt) {
{
expand: true,
cwd: 'src/',
src: ['*.html'],
src: ['*.html', 'ServiceWorker.js'],
dest: 'dist/'
}
]
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"start": "npm run build:sw && concurrently \"npm run start:app\" \"npm run start:firebase-emulators\"",
"start:app": "dotenv grunt",
"start:firebase-emulators": "firebase emulators:start --import emulator_data --export-on-exit --only functions,auth,ui,firestore",
"build:stage": "grunt build-stage",
"build:prod": "grunt build-prod",
"build:stage": "npm run build:sw && grunt build-stage",
"build:prod": "npm run build:sw && grunt build-prod",
"build:sw": "esbuild _src/ServiceWorker.js --bundle --outfile=src/ServiceWorker.js --define:process.env.FIREBASE_CONFIG=$(npx dotenv -p FIREBASE_CONFIG)"
},
"browserslist": {
Expand Down

0 comments on commit 82f02d7

Please sign in to comment.