Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Commit

Permalink
don't use other value than the usual for NODE_ENV when analyzing webp…
Browse files Browse the repository at this point in the history
…ack bundle
  • Loading branch information
sedubois committed Feb 26, 2017
1 parent 7e5e307 commit 0da3f10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = {
fs: 'fs',
};

if (process.env.NODE_ENV && process.env.NODE_ENV.toLowerCase() === 'analyze') {
if (process.env.ANALYZE_BUNDLE) {
// eslint-disable-next-line
const { BundleAnalyzerPlugin } = require('webpack-bundle-analyzer');
config.plugins.push(
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"start": "NODE_ENV=production node server",
"lint-staged": "lint-staged",
"deploy": "eslint . && now && now alias",
"bundle:analyze": "NODE_ENV=analyze yarn dev",
"bundle:analyze": "ANALYZE_BUNDLE=true yarn dev",
"bundle:view": "webpack-bundle-analyzer .next/stats.json"
},
"dependencies": {
Expand Down

0 comments on commit 0da3f10

Please sign in to comment.