Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/siilike/postcss-push
https://github.com/siilike/postcss-push
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/siilike/postcss-push
- Owner: siilike
- License: mit
- Created: 2020-11-03T10:56:38.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-24T12:04:50.000Z (over 2 years ago)
- Last Synced: 2024-10-08T15:08:46.403Z (about 1 month ago)
- Language: JavaScript
- Size: 54.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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