This repository has been archived by the owner on Aug 11, 2022. It is now read-only.
Releases: borodean/postcss-assets
Releases · borodean/postcss-assets
6.0.0
5.0.0
4.2.0
4.1.0
Features:
relative
option supports whatrelativeTo
option did in 3.x: if a string is passed, paths are generated relatively to a path in that string. A behavior of relating to input files by passingtrue
is kept untouched.
Under the hood:
- Code updated to match Airbnb code style.
- Tests converted to ES6 syntax.
4.0.1
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.