Commit 2043c839 by caoyanzhi

update: 调整打包配置

parent d8afa3cc
......@@ -42,7 +42,12 @@ const devWebpackConfig = merge(baseWebpackConfig, {
quiet: true, // necessary for FriendlyErrorsPlugin
watchOptions: {
poll: config.dev.poll,
}
},
before(app, server) {
app.get(/^(?!\/member).*$/, (req, res) => {
res.redirect('/member/');
})
},
},
plugins: [
new webpack.DefinePlugin({
......
......@@ -14,7 +14,7 @@ module.exports = {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
assetsPublicPath: '/member',
// proxyTable: proxyConfig.proxyConfig,
// Various Dev Server settings
......
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