Commit b932b8b4 by caoyanzhi

Merge branch 'feature/打包调整'

parents e047a6b9 9d75ae71
......@@ -42,7 +42,12 @@ const devWebpackConfig = merge(baseWebpackConfig, {
quiet: true, // necessary for FriendlyErrorsPlugin
watchOptions: {
poll: config.dev.poll,
}
},
before(app) {
app.get('/', (req, res) => {
res.redirect(config.dev.assetsPublicPath);
})
},
},
plugins: [
new webpack.DefinePlugin({
......@@ -82,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()
......
......@@ -9,7 +9,7 @@ module.exports = {
// Paths
assetsSubDirectory: 'static',
assetsPublicPath: '/',
assetsPublicPath: '/member-tag/',
proxyTable: {},//proxyConfig.proxyList,
// Various Dev Server settings
......
......@@ -11,11 +11,11 @@
"version": "conventional-changelog -p angular -i changelog.md -s -r 0 && git add changelog.md"
},
"dependencies": {
"element-ui": "^2.8.2",
"element-ui": "^2.15.6",
"file-saver": "^1.3.8",
"moment": "^2.29.1",
"tinymce": "^4.8.3",
"vue": "^2.5.2",
"vue": "2.6.6",
"vue-clipboard2": "^0.2.0",
"vue-loader": "^13.7.3",
"vue-router": "^3.0.1",
......@@ -75,7 +75,7 @@
"vue-axios": "^2.1.1",
"vue-loader": "^13.3.0",
"vue-style-loader": "^3.0.1",
"vue-template-compiler": "^2.5.2",
"vue-template-compiler": "2.6.6",
"vuedraggable": "^2.16.0",
"vuex": "^3.0.1",
"webpack": "^3.6.0",
......
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