We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 05aacff commit d327e5aCopy full SHA for d327e5a
src/utils/index.ts
@@ -62,8 +62,8 @@ export async function getContent(file: string) {
62
}
63
64
if (ext === 'scss') {
65
- const output = sass.renderSync({ file, outputStyle: 'expanded' })
66
- content = output.css.toString()
+ const output = await sass.compileAsync(file, { style: 'expanded' })
+ content = output.css
67
68
69
@@ -73,8 +73,8 @@ export async function getContent(file: string) {
73
content = output.css
74
75
76
- const o = sass.renderSync({ data: content })
77
- content = o.css.toString()
+ const output = await sass.compileStringAsync(content, { style: 'expanded' })
78
79
80
0 commit comments