From 71a70fe56c5e486bf23136b4f84db98c9773acf9 Mon Sep 17 00:00:00 2001 From: "Xin Du (Clark)" Date: Fri, 1 Feb 2019 16:04:06 +0000 Subject: [PATCH] fix: bundle resources other than js(x)/json in node_modules (#4913) --- packages/webpack/src/config/server.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/webpack/src/config/server.js b/packages/webpack/src/config/server.js index 0fb29ac6ae..f2e34f1045 100644 --- a/packages/webpack/src/config/server.js +++ b/packages/webpack/src/config/server.js @@ -16,8 +16,7 @@ export default class WebpackServerConfig extends WebpackBaseConfig { normalizeWhitelist() { const whitelist = [ - /\.css$/, - /\?vue&type=style/ + /\.(?!js(x|on)?$)/i ] for (const pattern of this.options.build.transpile) { if (pattern instanceof RegExp) {