Skip to content

Commit

Permalink
Merge pull request #163 from habx/feature/build-variable
Browse files Browse the repository at this point in the history
APP-23022: Define the static variable `__DEV__`
  • Loading branch information
habx-auto-merge[bot] authored Aug 2, 2021
2 parents b930650 + 3136206 commit 1611c04
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 1611c04

Please sign in to comment.