You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Detect the input type by str.endsWith('.sass') or str.endsWith('.scss').
Run the file through a Sass processor to create CSS (likely sass.js or a dart-sass binary since node-sass is no more)
Atomize the CSS like normal
If we allow strings of Sass to be passed in via data, then there needs to be a type or language or syntax or something that defaults to css, but allows sass and scss to be passed in as options.
Questions:
Should we allow users to pass in sass.js/dart-sass specific options?
What would that look like in the API?
Some options will need to be handled by Red-Perfume anyway, like using indentedSyntax setting for .sass
The text was updated successfully, but these errors were encountered:
We could add in functionality to detect if a style input is
.scss
or.sass
. Or have atype
option fordata
.Implementation:
str.endsWith('.sass')
orstr.endsWith('.scss')
.sass.js
or a dart-sass binary sincenode-sass
is no more)data
, then there needs to be atype
orlanguage
orsyntax
or something that defaults tocss
, but allowssass
andscss
to be passed in as options.Questions:
sass.js
/dart-sass
specific options?indentedSyntax
setting for.sass
The text was updated successfully, but these errors were encountered: