Skip to content
Stylecow plugin to resolve automatically the css paths of npm packages
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests
.gitignore
.travis.yml
LICENSE
README.md
index.js
package.json
yarn.lock

README.md

stylecow plugin npm-loader

Build Status

Stylecow plugin to resolve automatically the css paths of packages installed with npm. To do that, it search for the "style" property used in many packages.

You write:

@import "magnific-popup";

And stylecow resolves the path and converts to:

@import url("../node_modules/magnific-popup/dist/magnific-popup.css");

You can combine this plugin with import to insert the css code instead resolve only the url.

More demos in the tests folder

You can’t perform that action at this time.