sass-extract

Extract structured variables from sass files

MIT License

Downloads
26.3K
Stars
186
Committers
7

Bot releases are hidden (Show)

sass-extract - 3.0.0 Latest Release

Published by jgranstrom 12 months ago

  • Support for Dart sass, by @bencergazda
sass-extract - 2.1.0

Published by jgranstrom almost 7 years ago

sass-extract - v2.0.0

Published by jgranstrom almost 7 years ago

npm install sass-extract@2

  • Parser replaced to support more advanced language features such as variable arguments
  • Better precision for complex variable definitions when used with mixins, functions and default overrides commonly found in scss frameworks and theme tools
  • Better precision for nested block global variables such as inside @if statements in @function
  • Plugins can now be configured on a per run basis using the extraction apis extract/render
  • Various compatibility fixes
  • List separators are exposed and used in serialization of variables for more consistent behavior
  • Tested against the entire scss source of foundation-sites (!)

See detailed changelog

sass-extract -

Published by jgranstrom about 7 years ago

  • Parser rewritten to use the source AST instead of regex to identify variable declarations
  • True sass maps supported with arbitrary key types by properly serializing key values
  • Plugin support added for manipulating behavior and output of extraction
  • Proper support for default flag
  • Fix behavior of multiple overriding variable declarations within the same source file
  • Support global flags specified for variables in function and mixin definitions
  • Fix color extraction rounding bug