Skip to content

Commit

Permalink
fix: default workbox.mode to "production" (#9)
Browse files Browse the repository at this point in the history
* default workbox.mode to "production"

* bypass tsup replacing NODE_ENV var
  • Loading branch information
azamat-sharapov authored Dec 28, 2020
1 parent fa537da commit 7843d8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export function VitePWA(options: Partial<VitePWAOptions> = {}): Plugin {
swDest: `${outDir}/sw.js`,
globDirectory: outDir,
offlineGoogleAnalytics: false,
mode: process.env.NODE_ENV || 'development',
mode: process['env']['NODE_ENV'] || 'production',
}

const defaultManifest: Partial<ManifestOptions> = {
Expand Down

0 comments on commit 7843d8e

Please sign in to comment.