Skip to content

Commit d9a0061

Browse files
committed
build(examples): fix webpack-dev-server bug
GUIDE: webpack/webpack-dev-server#2190 (comment)
1 parent b096742 commit d9a0061

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/vue.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
const { resolve } = require('path')
22

33
module.exports = {
4+
devServer: {
5+
// https://github.com/webpack/webpack-dev-server/issues/2190#issuecomment-520670599
6+
contentBase: './public'
7+
},
48
chainWebpack(webpackConf) {
59
webpackConf.resolve.alias.set('@src', resolve(__dirname, '../src'))
610
}

0 commit comments

Comments
 (0)