Closed jamesnw closed 1 week ago
Name | Link |
---|---|
Latest commit | 2a46d1a409a62af4acce82eeda7de3a0053947ee |
Latest deploy log | https://app.netlify.com/sites/sass-lang/deploys/66eacef0b6238d00092d635b |
Deploy Preview | https://deploy-preview-1166--sass-lang.netlify.app |
Preview on mobile | Toggle QR Code...Use your smartphone camera to open QR code link. |
To edit notification comments on pull requests, go to your Netlify site configuration.
@nex3 I have a few options for getting the current list of module functions and variables. Essentially, I'm able to generate a list of the values using Sass, #{map.keys(meta.module-functions("math"))};
. To extract it from there, because this will be done in Node on build, I can't use DOM methods to get the values, which would have made this simpler. A few other options-
@debug
to emit the value to a custom Logger (requires a Sass compilation (or two) per module, but simple parsing)csstree
or @csstools/css-parser-algorithms
which is already installed as a dependency of stylelint. (Most robust, but potentially overengineered)Do you have any preference on this, or other ideas? I didn't see a clear way of parsing this from the existing documentation.
Can you pass the result of map.keys()
to a custom function? That seems like the best way to get a JS data structure out of Sass.
Can you pass the result of
map.keys()
to a custom function? That seems like the best way to get a JS data structure out of Sass.
That worked well!
Adds Sass-specific autocomplete to the Playground, specifically-
@codemirror/lang-css
package in https://github.com/codemirror/lang-css/releases/tag/6.3.0 via #1172, not here)@use "sass:math"
, for instancemath
math.$pi
math.clamp