Skip to content

Commit

Permalink
update to webpack 3.*, bump relevant dependencies (vuejs-templates#891)
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusBorg authored and frandiox committed Oct 13, 2017
1 parent 1866335 commit 9255de1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
14 changes: 8 additions & 6 deletions template/build/dev-server.js
Expand Up @@ -35,12 +35,14 @@ var hotMiddleware = require('webpack-hot-middleware')(compiler, {
heartbeat: 2000
})
// force page reload when html-webpack-plugin template changes
compiler.plugin('compilation', function (compilation) {
compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
hotMiddleware.publish({ action: 'reload' })
cb()
})
})
// currently disabled until this is resolved:
// https://github.com/jantimon/html-webpack-plugin/issues/680
// compiler.plugin('compilation', function (compilation) {
// compilation.plugin('html-webpack-plugin-after-emit', function (data, cb) {
// hotMiddleware.publish({ action: 'reload' })
// cb()
// })
// })
// proxy api requests
Object.keys(proxyTable).forEach(function (context) {
Expand Down
16 changes: 8 additions & 8 deletions template/package.json
Expand Up @@ -55,12 +55,12 @@
{{/lint}}
"eventsource-polyfill": "^0.9.6",
"express": "^4.14.1",
"extract-text-webpack-plugin": "^2.0.0",
"extract-text-webpack-plugin": "^3.0.0",
"file-loader": "^0.11.1",
"friendly-errors-webpack-plugin": "^1.1.3",
"html-webpack-plugin": "^2.28.0",
"friendly-errors-webpack-plugin": "^1.6.1",
"html-webpack-plugin": "^2.30.1",
"http-proxy-middleware": "^0.17.3",
"webpack-bundle-analyzer": "^2.2.1",
"webpack-bundle-analyzer": "^2.9.0",
{{#unit}}
"karma": "^1.4.1",
"karma-coverage": "^1.1.1",
Expand Down Expand Up @@ -92,10 +92,10 @@
"url-loader": "^0.5.8",
"vue-loader": "^12.1.0",
"vue-style-loader": "^3.0.1",
"vue-template-compiler": "^2.4.0",
"webpack": "^2.6.1",
"webpack-dev-middleware": "^1.10.0",
"webpack-hot-middleware": "^2.18.0",
"vue-template-compiler": "^2.4.2",
"webpack": "^3.5.5",
"webpack-dev-middleware": "^1.12.0",
"webpack-hot-middleware": "^2.18.2",
"webpack-merge": "^4.1.0"
},
"engines": {
Expand Down

0 comments on commit 9255de1

Please sign in to comment.