This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
4.0.0
Breaking
-
Removes
relativeTo
option, introducesrelative
one.There is no need to specify a particular file to relate to anymore - set
relative
totrue
and Assets would resolve URLs relatively to the current CSS file.This solves the issue when you have stylesheets in different folders and want relative paths — previously there was an option to relate only to a single directory.
(#42)
Features
-
Load paths now accept globs:
var options = { loadPaths: ['images', 'assets/**/img'] };
(#40)
-
Load paths now also accept single strings:
var options = { loadPaths: 'assets/**/img' };
Bugfixes
- Really fixes the SVG rendering on Internet Explorer.
- SCSS flags are preserved (#43).
- No more funky file names in the repo to make Windows archiver happy (#35).
- Allows numbers to be returned from the cachebuster function.
Under the hood
- Coverage hits 100%.
- Automated tests against the latest stable nodejs, v0.12 and v4.
- Builds are automatically tested on Windows by AppVeyor.
- Switches tests from Mocha to AVA.
- Uses Calipers for image measurement instead of image-size.
- Replaces custom function mapper with postcss-functions.
- Extracts assets processing logic to the Assets module.
- Cleans up dependencies.