[go: up one dir, main page]

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({
        /* 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

Package Sidebar

Install

npm i postcss-import-alias

Weekly Downloads

578

Version

0.0.1

License

MIT

Unpacked Size

2.92 kB

Total Files

4

Last publish

Collaborators

  • hirokiosame