diff --git a/src/node/utils/cssUtils.ts b/src/node/utils/cssUtils.ts index 9eb00242dc2fdc..655f924de8ce77 100644 --- a/src/node/utils/cssUtils.ts +++ b/src/node/utils/cssUtils.ts @@ -12,7 +12,7 @@ import { import { hmrClientPublicPath } from '../server/serverPluginHmr' export const urlRE = /(url\(\s*['"]?)([^"')]+)(["']?\s*\))/ -export const cssPreprocessLangRE = /(.+).(less|sass|scss|styl|stylus|postcss)$/ +export const cssPreprocessLangRE = /(.+)\.(less|sass|scss|styl|stylus|postcss)$/ type Replacer = (url: string) => string | Promise