Socket
Socket
Sign inDemoInstall

postcss-assets

Package Overview
Dependencies
28
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install
23Next

6.0.0

Diff

Changelog

Source

6.0.0

Breaking

  • Updates to PostCSS 8 (https://github.com/borodean/postcss-assets/issues/86, https://github.com/borodean/postcss-assets/pull/87)
  • Drops nodejs <10 support.

Under the hook

  • Minor documentation tweaks (https://github.com/borodean/postcss-assets/pull/78, https://github.com/borodean/postcss-assets/pull/84)
borodean
published 5.0.0 •

Changelog

Source

5.0.0

Breaking

  • Updates to PostCSS 6 (https://github.com/borodean/postcss-assets/issues/70, https://github.com/borodean/postcss-assets/issues/71, https://github.com/borodean/postcss-assets/pull/72).
  • Drops nodejs 0.12 support.
borodean
published 4.2.0 •

Changelog

Source

4.2.0

Features:

  • Add cache option to cache resolved dimensions (https://github.com/borodean/postcss-assets/pull/73).
borodean
published 4.1.0 •

Changelog

Source

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:

  • Code updated to match Airbnb code style.
  • Tests converted to ES6 syntax.
borodean
published 4.0.1 •

Changelog

Source

4.0.1

Bugfixes

  • Works fine with no options provided (https://github.com/assetsjs/postcss-assets/issues/45).
borodean
published 4.0.0 •

Changelog

Source

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

  • Really fixes the SVG rendering on Internet Explorer.
  • SCSS flags are preserved (https://github.com/assetsjs/postcss-assets/issues/43).
  • No more funky file names in the repo to make Windows archiver happy (https://github.com/assetsjs/postcss-assets/issues/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.
borodean
published 2.1.4 •

Changelog

Source

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

  • no longer uses private image-size fork (https://github.com/borodean/postcss-assets/issues/37)
borodean
published 3.0.3 •

Changelog

Source

3.0.3

Bugfixes

  • no longer uses private image-size fork, so properly installs on Windows (https://github.com/borodean/postcss-assets/pull/30, https://github.com/borodean/postcss-assets/issues/32);
  • properly calculates dimensions of SVGs with percentage values of width/height attributes (https://github.com/borodean/postcss-assets/issues/33).
borodean
published 3.0.2 •

Changelog

Source

3.0.2

Bugfixes

  • IE understands generated SVG (https://github.com/borodean/postcss-assets/issues/24).
borodean
published 3.0.1 •

Changelog

Source

3.0.1

Bugfixes

  • Preserves Microsoft filters (https://github.com/borodean/postcss-assets/issues/27).

Under the hood

  • Uses ESLint instead of JSHint/JSCS.
23Next
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc