postcss-assets
Advanced tools
Changelog
6.0.0
Breaking
Under the hook
Changelog
5.0.0
Breaking
Changelog
4.2.0
Features:
cache
option to cache resolved dimensions (https://github.com/borodean/postcss-assets/pull/73).Changelog
4.1.0
Features:
relative
option supports what relativeTo
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 passing true
is kept untouched.Under the hood:
Changelog
4.0.1
Bugfixes
Changelog
4.0.0
Breaking
Removes relativeTo
option, introduces relative
one.
There is no need to specify a particular file to relate to anymore - set relative
to true
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.
(https://github.com/assetsjs/postcss-assets/issues/42)
Features
Load paths now accept globs:
var options = { loadPaths: ["images", "assets/**/img"] };
(https://github.com/assetsjs/postcss-assets/issues/40)
Load paths now also accept single strings:
var options = { loadPaths: "assets/**/img" };
Bugfixes
Under the hood
Changelog
2.1.4
Since private image-size
fork was removed, releases 2.1.0—3.0.2 has stopped working. While 3.0.3 release fixes this for the 3.0.x versions, this release is fixing the same for the 2.1.x.
Bugfixes
image-size
fork (https://github.com/borodean/postcss-assets/issues/37)Changelog
3.0.3
Bugfixes
image-size
fork, so properly installs on Windows (https://github.com/borodean/postcss-assets/pull/30, https://github.com/borodean/postcss-assets/issues/32);width
/height
attributes (https://github.com/borodean/postcss-assets/issues/33).Changelog
3.0.2
Bugfixes