2.0.2 • Published 7 months ago
sass-functions v2.0.2
Sass functions
A collection of javascript functions to extend functionality of node-sass.
Usage:
npm install --save sass-functions
then at your compilation step pass options like this:
{
//...
functions: {
...require('sass-functions/replace')(),
//...
},
//...
}
replace($pattern, $string, $replacement)
Adds a string replace function that takes a pattern (string or regular expression), a string to replace values in and what to use as the replacement (supports things like $1 for capture groups).
image-size($url)
Generator takes a required publicRoot
option that is used as a base path to look for all of the images. Returns a map with keys width
and height
.
Takes optional alias
property to use along with webpack aliases to resolve paths to files
MIT License
2.0.2
7 months ago
2.0.1-beta.0
2 years ago
2.0.1
2 years ago
2.0.0
3 years ago
1.4.0
4 years ago
1.4.0-beta.0
4 years ago
1.3.0
5 years ago
1.2.1
5 years ago
1.2.0
5 years ago
1.1.0
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
1.0.0-beta.0
5 years ago