PostCSS Importer
A PostCSS plugin to load and inline imports
Installation
npm install postcss-importer
Features
- Import local files
- Declare an import without file extension to use the same extension as the source file (
.css
or.scss
) - Import multiple and backward levels
- Import files from external sources (from CDNs, etc.)
Examples
Simple
/* main.css */;
/* other.css */
/* result */
External source
/* input */;
/* result */
Usage
Postcss JS API
;
Gulp
const gulp = ;const postcss = ;const importer = ;gulp;
Tests
npm test
License
This project is licensed under the MIT License.