Commit 5e7828b2 by caoyanzhi

update: 调整devServer配置

parent 54e02265
...@@ -43,8 +43,8 @@ const devWebpackConfig = merge(baseWebpackConfig, { ...@@ -43,8 +43,8 @@ const devWebpackConfig = merge(baseWebpackConfig, {
watchOptions: { watchOptions: {
poll: config.dev.poll, poll: config.dev.poll,
}, },
before(app, server) { before(app) {
app.get(/^(?!\/haoban-3).*$/, (req, res) => { app.get('/', (req, res) => {
res.redirect('/haoban-3/'); res.redirect('/haoban-3/');
}) })
}, },
......
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