Skip to content

Commit

Permalink
build(examples): fix webpack-dev-server bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lbwa committed Aug 14, 2019
1 parent b096742 commit d9a0061
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/vue.config.js
@@ -1,6 +1,10 @@
const { resolve } = require('path')

module.exports = {
devServer: {
// https://github.com/webpack/webpack-dev-server/issues/2190#issuecomment-520670599
contentBase: './public'
},
chainWebpack(webpackConf) {
webpackConf.resolve.alias.set('@src', resolve(__dirname, '../src'))
}
Expand Down

0 comments on commit d9a0061

Please sign in to comment.