mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-31 09:12:10 +08:00
23 lines
652 B
JavaScript
23 lines
652 B
JavaScript
const webpack = require('webpack')
|
|
const merge = require('webpack-merge')
|
|
const base = require('./webpack.prod.conf')
|
|
const SWPrecachePlugin = require('sw-precache-webpack-plugin')
|
|
const VueSSRClientPlugin = require('vue-server-renderer/client-plugin')
|
|
|
|
const config = merge(base, {
|
|
entry: {
|
|
app: './src/entry-client.js'
|
|
},
|
|
plugins: [
|
|
// strip dev-only code in Vue source
|
|
new webpack.DefinePlugin({
|
|
'process.env.NODE_ENV': JSON.stringify(process.env.NODE_ENV || 'development'),
|
|
'process.env.VUE_ENV': '"client"'
|
|
}),
|
|
new VueSSRClientPlugin()
|
|
]
|
|
})
|
|
|
|
|
|
module.exports = config
|