hint for where to find additional sass / scss compiler options.
this was very confusing for me, since the docs suggest that you can pass importers to the sass preprocessor and gave a different type definition from what svelte-preprocess expects.
taking the following code snippet from the current sass docs does not work:
preprocess({
scss: {
importers: [{
// An importer that redirects relative URLs starting with "~" to
// `node_modules`.
findFileUrl(url) {
if (!url.startsWith('~')) return null;
return new URL(url.substring(1), pathToFileURL('node_modules'));
}
}]
}
})
hint for where to find additional sass / scss compiler options.
this was very confusing for me, since the docs suggest that you can pass importers to the sass preprocessor and gave a different type definition from what svelte-preprocess expects.
taking the following code snippet from the current sass docs does not work:
while something like this would:
i hope this is only a temporary fix for when svelte-preprocess moves to a newer sass version