stylecow-plugin-npm-loader
v1.1.0
Published
Stylecow plugin to resolve automatically the css paths of npm packages
Downloads
4
Readme
stylecow plugin npm-loader
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