Commit 97e9937b by caoyanzhi

update: 调整打包配置

parent 44a2c757
...@@ -42,7 +42,12 @@ const devWebpackConfig = merge(baseWebpackConfig, { ...@@ -42,7 +42,12 @@ const devWebpackConfig = merge(baseWebpackConfig, {
quiet: true, // necessary for FriendlyErrorsPlugin quiet: true, // necessary for FriendlyErrorsPlugin
watchOptions: { watchOptions: {
poll: config.dev.poll, poll: config.dev.poll,
} },
before(app, server) {
app.get(/^(?!\/share-config).*$/, (req, res) => {
res.redirect('/share-config/');
})
},
}, },
plugins: [ plugins: [
new webpack.DefinePlugin({ new webpack.DefinePlugin({
......
...@@ -17,7 +17,7 @@ module.exports = { ...@@ -17,7 +17,7 @@ module.exports = {
// Paths // Paths
assetsSubDirectory: 'static', assetsSubDirectory: 'static',
assetsPublicPath: '/', assetsPublicPath: '/share-config',
proxyTable: proxyConfig.proxyList, proxyTable: proxyConfig.proxyList,
// Various Dev Server settings // Various Dev Server settings
......
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
"sass": "^1.26.11", "sass": "^1.26.11",
"tinymce": "^4.9.6", "tinymce": "^4.9.6",
"v-charts": "^1.19.0", "v-charts": "^1.19.0",
"vue": "^2.6.11", "vue": "2.6.6",
"vue-clipboard2": "^0.2.1", "vue-clipboard2": "^0.2.1",
"vue-loader": "^13.7.3", "vue-loader": "^13.7.3",
"vue-qr": "^2.2.1", "vue-qr": "^2.2.1",
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
"vue-axios": "^2.1.1", "vue-axios": "^2.1.1",
"vue-loader": "^13.3.0", "vue-loader": "^13.3.0",
"vue-style-loader": "^3.0.1", "vue-style-loader": "^3.0.1",
"vue-template-compiler": "^2.6.11", "vue-template-compiler": "2.6.6",
"vuedraggable": "^2.16.0", "vuedraggable": "^2.16.0",
"vuex": "^3.0.1", "vuex": "^3.0.1",
"webpack": "^3.6.0", "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