Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/siilike/postcss-push


https://github.com/siilike/postcss-push

Last synced: 26 days ago
JSON representation

Awesome Lists containing this project

README

        

# PostCSS Load Plugin

[PostCSS] plugin to load files into the pipeline.

[PostCSS]: https://github.com/postcss/postcss

## Usage

**Step 1:** Install plugin:

```sh
npm install --save-dev postcss postcss-push
```

**Step 2:** Check you project for existed PostCSS config: `postcss.config.js`
in the project root, `"postcss"` section in `package.json`
or `postcss` in bundle config.

If you do not use PostCSS, add it according to [official docs]
and set this plugin in settings.

**Step 3:** Add the plugin to plugins list:

```diff
module.exports = {
plugins: [
+ require('postcss-push')(
+ {
+ files: [ 'test.css', 'test2.css' ],
+ }),
require('autoprefixer')
]
}
```

[official docs]: https://github.com/postcss/postcss#usage