fix: support postcss lang (#1948)
This commit is contained in:
parent
f37c7ad2ad
commit
22dd6bf6d6
2 changed files with 6 additions and 1 deletions
5
.changeset/big-mangos-bow.md
Normal file
5
.changeset/big-mangos-bow.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Support `lang="postcss"` in addition to `lang="pcss"`
|
|
@ -4,7 +4,7 @@ import path from 'path';
|
|||
import { viteifyURL } from '../util.js';
|
||||
|
||||
// https://vitejs.dev/guide/features.html#css-pre-processors
|
||||
export const STYLE_EXTENSIONS = new Set(['.css', '.pcss', '.scss', '.sass', '.styl', '.stylus', '.less']);
|
||||
export const STYLE_EXTENSIONS = new Set(['.css', '.pcss', '.postcss', '.scss', '.sass', '.styl', '.stylus', '.less']);
|
||||
|
||||
/** find unloaded styles */
|
||||
export function getStylesForURL(filePath: URL, viteServer: vite.ViteDevServer): Set<string> {
|
||||
|
|
Loading…
Reference in a new issue