postcss-import-alias
v0.0.1
Published
Use aliases in your PostCSS import statements
Downloads
1,375
Maintainers
Readme
postcss-import-alias
Use aliases in your PostCSS import statements
Install
$ npm i postcss-import-alias
Usage
import postcss from 'postcss';
import postcssImportAlias from 'postcss-import-alias';
postcss([
postcssImportAlias({
/* aliases */
prism: 'https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0'
})
]).process(YOUR_CSS);
@import "prism/themes/prism.min.css";
// would compile to
@import "https://cdnjs.cloudflare.com/ajax/libs/prism/1.20.0/themes/prism.min.css";
License
MIT