postcss-node-modules-replacer
v0.0.1
Published
PostCSS plugin replaces path from node_modules to ~
Downloads
8
Maintainers
Readme
postcss-node-modules-replacer
PostCSS plugin replaces path from node_modules to ~.
.foo {
@import "../../../../../../../node_modules/billing-ui/variables";
@import "../../../../../../../node_modules/billing-ui/placeholders";
@import "./newStyle.scss";
@import "../../../../newStyle.scss";
}
.foo {
@import "~billing-ui/variables";
@import "~billing-ui/placeholders";
@import "./newStyle.scss";
@import "../../../../newStyle.scss";
}
Usage
postcss([ require('postcss-node-modules-replacer') ])
See PostCSS docs for examples for your environment.