fix: bundle resources other than js(x)/json in node_modules (#4913)

This commit is contained in:
Xin Du (Clark) 2019-02-01 16:04:06 +00:00 committed by GitHub
parent 569b6aab9c
commit 268851fe85
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,8 +16,7 @@ export default class WebpackServerConfig extends WebpackBaseConfig {
normalizeWhitelist() { normalizeWhitelist() {
const whitelist = [ const whitelist = [
/\.css$/, /\.(?!js(x|on)?$)/i
/\?vue&type=style/
] ]
for (const pattern of this.options.build.transpile) { for (const pattern of this.options.build.transpile) {
if (pattern instanceof RegExp) { if (pattern instanceof RegExp) {