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]'