Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

4.0.0

Compare
Choose a tag to compare
@borodean borodean released this 30 Jan 17:57
· 57 commits to main since this release

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.

    (#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.