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