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

🐛 fix package bug

This commit is contained in:
FrankLo 2018-08-24 23:07:19 +08:00 committed by 花裤衩
parent 64dfb93d7e
commit ec3afcc232

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',