Correctly compile lang="sass" styles
(#857)
* Added sass support * Combined cases, added check for indentedSyntax * Corrected changeset
This commit is contained in:
parent
4591c1f5ad
commit
b8af49f035
2 changed files with 6 additions and 1 deletions
5
.changeset/cold-bikes-float.md
Normal file
5
.changeset/cold-bikes-float.md
Normal file
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
'astro': patch
|
||||
---
|
||||
|
||||
Added sass support
|
|
@ -109,7 +109,7 @@ async function transformStyle(code: string, { logging, type, filename, scopedCla
|
|||
}
|
||||
case 'sass':
|
||||
case 'scss': {
|
||||
css = sass.renderSync({ data: code, includePaths }).css.toString('utf8');
|
||||
css = sass.renderSync({ data: code, includePaths, indentedSyntax: styleType === 'sass' }).css.toString('utf8');
|
||||
break;
|
||||
}
|
||||
default: {
|
||||
|
|
Loading…
Reference in a new issue