Skip to content

Commit

Permalink
build: change env
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Apr 14, 2022
1 parent 980de29 commit d911bbf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions configs/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ const NODE_ENV_PRODUCTION = 'production';
const NODE_ENV_DEVELOPMENT = 'development';

const isAnalyze = !!process.env.ANALYZE;
const isDedupe = !!process.env.DEDUPE;
const isProduction = process.env.NODE_ENV === NODE_ENV_PRODUCTION;

module.exports = {
Expand All @@ -30,7 +29,7 @@ module.exports = {
Buffer: ['buffer', 'Buffer'],
process: require.resolve('process/browser'), // unclear which @stacks package dependencies introduce this (not common, not network)
}),
isDedupe && new DuplicatesPlugin(),
isAnalyze && new DuplicatesPlugin(),
isAnalyze && new BundleAnalyzerPlugin({ analyzerMode: 'static' }),
].filter(Boolean),
optimization: {
Expand Down

0 comments on commit d911bbf

Please sign in to comment.