View Code? Open in Web Editor
NEW
Export Sass $variable values as JSON data to Ember Utilities, so they can be consumed from the rest of your app.
Home Page: https://minusfive.com/ember-cli-sass-variables-export/
License: MIT License
JavaScript 86.66%
HTML 11.22%
CSS 2.12%
ember-cli-sass-variables-export's Issues
Doesn't work (but should) ๐ข:
Edit: Apparently doesn't work ONLY when invoked as a nested addon, will investigate.
$myvar: export('my-util', (
'im-a-map-key': 'im-a-map-value',
...
));
@debug type-of($myvar); // Returns 'string', should be 'map'
Works (it better!):
$myvar: (
'im-a-map-key': 'im-a-map-value',
...
);
$myvar-export: export('my-util', $myvar);
@debug type-of($myvar); // Returns 'map'