Skip to content

Commit

Permalink
Define the static variable __DEV__
Browse files Browse the repository at this point in the history
  • Loading branch information
alexisfontaine committed Aug 2, 2021
1 parent b930650 commit 3136206
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions webpack/overrides.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
const { merge, remove } = require('lodash')
const webpack = require('webpack')

const helpers = require('../helpers')
const customConfig = require('./webpack.config')

module.exports = (defaultConfig) => {
let config = merge({}, defaultConfig, customConfig)

config.plugins.unshift(new webpack.DefinePlugin({
__DEV__: JSON.stringify(process.env.NODE_ENV !== "production"),
}))

if (helpers.exists(
'circular-dependency-plugin',
'install the package to enable circular dependencies detection.'
Expand Down

0 comments on commit 3136206

Please sign in to comment.