1
0
mirror of https://github.com/PanJiaChen/electron-vue-admin.git synced 2025-04-05 19:41:41 +08:00

🐛 fix package bug

This commit is contained in:
FrankLo 2018-08-24 23:07:19 +08:00
parent 64dfb93d7e
commit 5af793ea2d

View File

@ -121,7 +121,7 @@ let rendererConfig = {
plugins: [
new ExtractTextPlugin('styles.css'),
new webpack.DefinePlugin({
'process.env': config.dev.env
'process.env': process.env.NODE_ENV === 'production' ? config.build.env : config.dev.env
}),
new HtmlWebpackPlugin({
filename: 'index.html',