Commit bc1b6b18 authored by Evan You's avatar Evan You

update deps

parent a0833d49
...@@ -24,9 +24,12 @@ module.exports = function setupDevServer (app, opts) { ...@@ -24,9 +24,12 @@ module.exports = function setupDevServer (app, opts) {
}) })
app.use(devMiddleware) app.use(devMiddleware)
clientCompiler.plugin('done', () => { clientCompiler.plugin('done', () => {
const fs = devMiddleware.fileSystem
const filePath = path.join(clientConfig.output.path, 'index.html') const filePath = path.join(clientConfig.output.path, 'index.html')
const index = devMiddleware.fileSystem.readFileSync(filePath, 'utf-8') if (fs.existsSync(filePath)) {
opts.indexUpdated(index) const index = fs.readFileSync(filePath, 'utf-8')
opts.indexUpdated(index)
}
}) })
// hot middleware // hot middleware
......
...@@ -42,7 +42,8 @@ ...@@ -42,7 +42,8 @@
"stylus-loader": "^2.1.2", "stylus-loader": "^2.1.2",
"sw-precache-webpack-plugin": "^0.6.0", "sw-precache-webpack-plugin": "^0.6.0",
"url-loader": "^0.5.7", "url-loader": "^0.5.7",
"vue-loader": "^9.9.3", "vue-loader": "^10.0.0",
"vue-template-compiler": "^2.0.0",
"webpack": "^2.1.0-beta.26", "webpack": "^2.1.0-beta.26",
"webpack-dev-middleware": "^1.6.1", "webpack-dev-middleware": "^1.6.1",
"webpack-hot-middleware": "^2.12.2" "webpack-hot-middleware": "^2.12.2"
......
This diff is collapsed.
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