Sass Extract Versions Save

Extract structured variables from sass files

v3.0.0

6 months ago
  • Support for Dart sass, by @bencergazda

v2.1.0

6 years ago

v2.0.0

6 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

v1.0.0

6 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