Commit 3f0b9611 by caoyanzhi

update: 调整打包配置

parent 28d8267b
...@@ -45,7 +45,7 @@ const devWebpackConfig = merge(baseWebpackConfig, { ...@@ -45,7 +45,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
}, },
before(app) { before(app) {
app.get('/', (req, res) => { app.get('/', (req, res) => {
res.redirect('/member-tag/'); res.redirect(config.dev.assetsPublicPath);
}) })
}, },
}, },
...@@ -87,7 +87,7 @@ module.exports = new Promise((resolve, reject) => { ...@@ -87,7 +87,7 @@ module.exports = new Promise((resolve, reject) => {
// Add FriendlyErrorsPlugin // Add FriendlyErrorsPlugin
devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({ devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
compilationSuccessInfo: { compilationSuccessInfo: {
messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}`], messages: [`Your application is running here: http://${devWebpackConfig.devServer.host}:${port}${config.dev.assetsPublicPath}`],
}, },
onErrors: config.dev.notifyOnErrors onErrors: config.dev.notifyOnErrors
? utils.createNotifierCallback() ? utils.createNotifierCallback()
......
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