Commit abae7449 by caoyanzhi

update: 调整打包配置

parent 39d46418
...@@ -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('/gic-clique/'); res.redirect(config.dev.assetsPublicPath);
}) })
}, },
}, },
...@@ -88,7 +88,7 @@ module.exports = new Promise((resolve, reject) => { ...@@ -88,7 +88,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()
......
...@@ -9,7 +9,7 @@ module.exports = { ...@@ -9,7 +9,7 @@ module.exports = {
// Paths // Paths
assetsSubDirectory: 'static', assetsSubDirectory: 'static',
assetsPublicPath: '/gic-clique', assetsPublicPath: '/gic-clique/',
proxyTable: {},//proxyConfig.proxyList, proxyTable: {},//proxyConfig.proxyList,
// Various Dev Server settings // 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