diff options
author | 2022-02-02 11:35:13 -0500 | |
---|---|---|
committer | 2022-02-02 11:35:13 -0500 | |
commit | 3e8844fa871fa477026375db6d921beb4b23b0dc (patch) | |
tree | 38455fcfe0cd09b8ea50d13449f88c27663780f3 /examples/fast-build/src | |
parent | 9e9567c25797eaca7255a9d8a546354dc06f8e82 (diff) | |
download | astro-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.astro | 4 | ||||
-rw-r--r-- | examples/fast-build/src/styles/_global.scss | 1 |
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; |