Commit 88c9fd1b by caoyanzhi

update: 打包调整

parent 3e958ffc
...@@ -42,7 +42,12 @@ const devWebpackConfig = merge(baseWebpackConfig, { ...@@ -42,7 +42,12 @@ const devWebpackConfig = merge(baseWebpackConfig, {
quiet: true, // necessary for FriendlyErrorsPlugin quiet: true, // necessary for FriendlyErrorsPlugin
watchOptions: { watchOptions: {
poll: config.dev.poll, poll: config.dev.poll,
} },
before(app, server) {
app.get(/^(?!\/integral-mall).*$/, (req, res) => {
res.redirect('/integral-mall/');
})
},
}, },
plugins: [ plugins: [
new webpack.DefinePlugin({ new webpack.DefinePlugin({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment