Add env plugin in webpack dll config

This commit is contained in:
SleepWalker 2019-12-13 09:19:00 +02:00
parent d13dee748d
commit 08a2158042

View File

@ -43,6 +43,9 @@ const webpackConfig = {
name: '[name]',
path: path.join(outputPath, '[name].json'),
}),
new webpack.EnvironmentPlugin({
NODE_ENV: process.env.NODE_ENV,
}),
],
};