From 8a62ddace0cb40631d81535df26dd5704cf9b26a Mon Sep 17 00:00:00 2001 From: Matthew Phillips Date: Wed, 2 Feb 2022 10:26:35 -0500 Subject: [PATCH 1/3] Fix support for scss in static build --- examples/fast-build/src/pages/index.astro | 4 +- examples/fast-build/src/styles/_global.scss | 1 + .../astro/src/vite-plugin-astro/compile.ts | 42 ++++++++---- packages/astro/src/vite-plugin-astro/hmr.ts | 68 +++++++++++++++++++ packages/astro/src/vite-plugin-astro/index.ts | 12 +++- 5 files changed, 108 insertions(+), 19 deletions(-) create mode 100644 examples/fast-build/src/styles/_global.scss create mode 100644 packages/astro/src/vite-plugin-astro/hmr.ts diff --git a/examples/fast-build/src/pages/index.astro b/examples/fast-build/src/pages/index.astro index 4d13ae5a57ea..0b7e7ff219fc 100644 --- a/examples/fast-build/src/pages/index.astro +++ b/examples/fast-build/src/pages/index.astro @@ -17,9 +17,9 @@ import ExternalHoisted from '../components/ExternalHoisted.astro'; }