diff --git a/packages/vite/src/utils/index.ts b/packages/vite/src/utils/index.ts index ef1262cffb..0feb1b5ca5 100644 --- a/packages/vite/src/utils/index.ts +++ b/packages/vite/src/utils/index.ts @@ -7,7 +7,7 @@ export function uniq (arr: T[]): T[] { } // Copied from vue-bundle-renderer utils -const IS_CSS_RE = /\.(?:css|scss|sass|postcss|less|stylus|styl)(\?[^.]+)?$/ +const IS_CSS_RE = /\.(?:css|scss|sass|postcss|pcss|less|stylus|styl)(\?[^.]+)?$/ export function isCSS (file: string) { return IS_CSS_RE.test(file)