Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1.05 KB

Readme.md

File metadata and controls

24 lines (16 loc) · 1.05 KB

sass-browserslist

Use browserslist in your Libsass/node-sass modules.

Usage

sass-browserslist is a node-js module that delegates to the browserslist() function, and formats the results as expected by various sass libraries managing browsers support. To actually get the formatted browsers list in sass, use node-sass's function option, or use a custom importer such as node-sass-import-once.

var sass = require('node-sass'); var sassBrowserslist = require('sass-browserslist');

sass.render({ /* ... */, functions: { 'sass-browserslist': sassBrowserslist.supportFor } });

support-for()

Returns the list of minimum browsers versions, as understood by sass's support-for module. Accepts the same parameters as the browserslist() function.

var sassBrowserslist = require('sass-support-for'); sassBrowserslist.supportFor();