From 9cca30d998a24e58a2e2871a5d95ba508d012dd4 Mon Sep 17 00:00:00 2001 From: sun0day Date: Sat, 25 Feb 2023 17:31:01 +0800 Subject: [PATCH] fix(css): should not rebase http url for less (fix: #12155) (#12195) --- packages/vite/src/node/plugins/css.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/vite/src/node/plugins/css.ts b/packages/vite/src/node/plugins/css.ts index c53c1def013550..38ca4cac277538 100644 --- a/packages/vite/src/node/plugins/css.ts +++ b/packages/vite/src/node/plugins/css.ts @@ -1796,8 +1796,8 @@ function createViteLessPlugin( this.resolvers = resolvers this.alias = alias } - override supports() { - return true + override supports(filename: string) { + return !isExternalUrl(filename) } override supportsSync() { return false