fix: Cannot read property call of undefined when extractCSS is true

This commit is contained in:
Clark Du 2018-01-12 17:19:33 +08:00
parent 3c4b57e1f7
commit 28d3e6fdb3

View File

@ -73,7 +73,11 @@ module.exports = class Builder {
'vue-router',
'vue-meta',
this.options.store && 'vuex'
].concat(this.options.build.vendor).filter(v => v)
].concat(this.options.build.extractCSS && [
// https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/456
'vue-style-loader/lib/addStylesClient',
'css-loader/lib/css-base'
]).concat(this.options.build.vendor).filter(v => v)
}
vendorEntries() {