summaryrefslogtreecommitdiff
path: root/examples/fast-build/src
diff options
context:
space:
mode:
authorGravatar Matthew Phillips <matthew@matthewphillips.info> 2022-02-02 11:35:13 -0500
committerGravatar GitHub <noreply@github.com> 2022-02-02 11:35:13 -0500
commit3e8844fa871fa477026375db6d921beb4b23b0dc (patch)
tree38455fcfe0cd09b8ea50d13449f88c27663780f3 /examples/fast-build/src
parent9e9567c25797eaca7255a9d8a546354dc06f8e82 (diff)
downloadastro-3e8844fa871fa477026375db6d921beb4b23b0dc.tar.gz
astro-3e8844fa871fa477026375db6d921beb4b23b0dc.tar.zst
astro-3e8844fa871fa477026375db6d921beb4b23b0dc.zip
Fix support for scss in static build (#2522)
* Fix support for scss in static build * Adds a changeset * Pass the normalizedID to transformWithVite
Diffstat (limited to 'examples/fast-build/src')
-rw-r--r--examples/fast-build/src/pages/index.astro4
-rw-r--r--examples/fast-build/src/styles/_global.scss1
2 files changed, 3 insertions, 2 deletions
diff --git a/examples/fast-build/src/pages/index.astro b/examples/fast-build/src/pages/index.astro
index 4d13ae5a5..0b7e7ff21 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';
}
</style>
<style lang="scss">
- $color: purple;
+ @import "../styles/_global.scss";
h2 {
- color: purple;
+ color: $color;
}
</style>
<style define:vars={{ color: 'blue' }}>
diff --git a/examples/fast-build/src/styles/_global.scss b/examples/fast-build/src/styles/_global.scss
new file mode 100644
index 000000000..27620a746
--- /dev/null
+++ b/examples/fast-build/src/styles/_global.scss
@@ -0,0 +1 @@
+$color: tan;