Skip to content

Commit

Permalink
Using the env.NODE_ENV to fix builds
Browse files Browse the repository at this point in the history
  • Loading branch information
kraenhansen authored Oct 10, 2017
1 parent cef2f25 commit eec9e5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.base.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ module.exports = (env) => {
// @see https://github.com/s-panferov/awesome-typescript-loader#configuration on why CheckerPlugin is needed
new CheckerPlugin(),
new webpack.DefinePlugin({
"process.env.NODE_ENV": JSON.stringify(process.env.NODE_ENV),
"process.env.NODE_ENV": JSON.stringify(env.NODE_ENV),
}),
new SpriteLoaderPlugin(),
].concat(isProduction ? [
Expand Down

0 comments on commit eec9e5a

Please sign in to comment.