Skip to content

Commit bc1b6b1

Browse files
committed
update deps
1 parent a0833d4 commit bc1b6b1

File tree

3 files changed

+89
-196
lines changed

3 files changed

+89
-196
lines changed

build/setup-dev-server.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@ module.exports = function setupDevServer (app, opts) {
2424
})
2525
app.use(devMiddleware)
2626
clientCompiler.plugin('done', () => {
27+
const fs = devMiddleware.fileSystem
2728
const filePath = path.join(clientConfig.output.path, 'index.html')
28-
const index = devMiddleware.fileSystem.readFileSync(filePath, 'utf-8')
29-
opts.indexUpdated(index)
29+
if (fs.existsSync(filePath)) {
30+
const index = fs.readFileSync(filePath, 'utf-8')
31+
opts.indexUpdated(index)
32+
}
3033
})
3134

3235
// hot middleware

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"stylus-loader": "^2.1.2",
4343
"sw-precache-webpack-plugin": "^0.6.0",
4444
"url-loader": "^0.5.7",
45-
"vue-loader": "^9.9.3",
45+
"vue-loader": "^10.0.0",
46+
"vue-template-compiler": "^2.0.0",
4647
"webpack": "^2.1.0-beta.26",
4748
"webpack-dev-middleware": "^1.6.1",
4849
"webpack-hot-middleware": "^2.12.2"

0 commit comments

Comments
 (0)