Skip to content

Commit 00d2dc1

Browse files
authored
doc(workbox): missing 'process' keyword (GoogleChrome#3766)
1 parent fdbab17 commit 00d2dc1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • site/en/docs/workbox/using-workbox-without-precaching

site/en/docs/workbox/using-workbox-without-precaching/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ To satisfy the above conditions, a function can be passed to [`output.filename`]
5454
// webpack.config.js
5555
import process from 'process';
5656

57-
const isProd = env.NODE_ENV === 'production';
57+
const isProd = process.env.NODE_ENV === 'production';
5858

5959
export default {
6060
mode: isProd ? 'production' : 'development',

0 commit comments

Comments
 (0)