From 6342e823a1c373f3ad85f7665cf534b457920b27 Mon Sep 17 00:00:00 2001 From: Daniel Roe Date: Thu, 17 Mar 2022 17:50:06 +0000 Subject: [PATCH] fix(webpack): support absolute urls in webpack css url/import (#3743) --- packages/schema/src/config/webpack.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/packages/schema/src/config/webpack.ts b/packages/schema/src/config/webpack.ts index e83f776c46..334122e561 100644 --- a/packages/schema/src/config/webpack.ts +++ b/packages/schema/src/config/webpack.ts @@ -163,10 +163,16 @@ export default { }, css: { importLoaders: 0, + url: { + filter: (url: string, resourcePath: string) => !url.startsWith('/'), + }, esModule: false }, cssModules: { importLoaders: 0, + url: { + filter: (url: string, resourcePath: string) => !url.startsWith('/'), + }, esModule: false, modules: { localIdentName: '[local]_[hash:base64:5]'