postcss-import-alias
0.0.1 • Public • Published 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({
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
Package Sidebar
Install
npm i postcss-import-alias
Weekly Downloads