Commit 204d125b472921c37b43deacafe1d06e0ed636aa

Authored by liuqimichale
1 parent b608a198

webpack.server 版本

build/webpack.dev.conf.js
... ... @@ -23,6 +23,8 @@ const devWebpackConfig = merge(baseWebpackConfig, {
23 23 // these devServer options should be customized in /config/index.js
24 24 devServer: {
25 25 clientLogLevel: 'warning',
  26 + inline:false,
  27 +
26 28 historyApiFallback: {
27 29 rewrites: [
28 30 { from: /.*/, to: path.posix.join(config.dev.assetsPublicPath, 'index.html') },
... ... @@ -56,7 +58,6 @@ const devWebpackConfig = merge(baseWebpackConfig, {
56 58 filename: 'index.html',
57 59 template: 'index.html',
58 60 inject: true,
59   - favicon:'../static/favicon.ico'
60 61 }),
61 62 // copy custom static assets
62 63 new CopyWebpackPlugin([
... ...
package.json
... ... @@ -65,7 +65,7 @@
65 65 "vue-template-compiler": "^2.5.2",
66 66 "webpack": "^3.12.0",
67 67 "webpack-bundle-analyzer": "^2.9.0",
68   - "webpack-dev-server": "^2.9.1",
  68 + "webpack-dev-server": "^2.9.7",
69 69 "webpack-merge": "^4.1.0"
70 70 },
71 71 "engines": {
... ...