Commit 3ea9ab56 by caoyanzhi

update: 调整打包配置

parent 5e7828b2
......@@ -45,7 +45,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
},
before(app) {
app.get('/', (req, res) => {
res.redirect('/haoban-3/');
res.redirect(config.dev.assetsPublicPath);
})
},
},
......@@ -87,7 +87,7 @@ module.exports = new Promise((resolve, reject) => {
// Add FriendlyErrorsPlugin
devWebpackConfig.plugins.push(new FriendlyErrorsPlugin({
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
? utils.createNotifierCallback()
......
......@@ -17,7 +17,7 @@ module.exports = {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/haoban-3',
assetsPublicPath: '/haoban-3/',
// proxyTable: proxyConfig.proxyList,
// 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