summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Nate Moore <natemoo-re@users.noreply.github.com> 2021-11-22 11:40:11 -0600
committerGravatar GitHub <noreply@github.com> 2021-11-22 11:40:11 -0600
commit22dd6bf6d6c5a74f3258bbf6351ff31fa7ab4ae2 (patch)
tree54258ecb505547f8fcb49aaaddcd6a7ac1de1cf9
parentf37c7ad2ad8d6f1f57e4e2453e7f4bf094a8a790 (diff)
downloadastro-22dd6bf6d6c5a74f3258bbf6351ff31fa7ab4ae2.tar.gz
astro-22dd6bf6d6c5a74f3258bbf6351ff31fa7ab4ae2.tar.zst
astro-22dd6bf6d6c5a74f3258bbf6351ff31fa7ab4ae2.zip
fix: support postcss lang (#1948)
Diffstat (limited to '')
-rw-r--r--.changeset/big-mangos-bow.md5
-rw-r--r--packages/astro/src/core/ssr/css.ts2
2 files changed, 6 insertions, 1 deletions
diff --git a/.changeset/big-mangos-bow.md b/.changeset/big-mangos-bow.md
new file mode 100644
index 000000000..69a12f884
--- /dev/null
+++ b/.changeset/big-mangos-bow.md
@@ -0,0 +1,5 @@
+---
+'astro': patch
+---
+
+Support `lang="postcss"` in addition to `lang="pcss"`
diff --git a/packages/astro/src/core/ssr/css.ts b/packages/astro/src/core/ssr/css.ts
index 83478495a..ab58d6ff4 100644
--- a/packages/astro/src/core/ssr/css.ts
+++ b/packages/astro/src/core/ssr/css.ts
@@ -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> {