https://github.com/siilike/postcss-push
https://github.com/siilike/postcss-push
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/siilike/postcss-push
- Owner: siilike
- License: mit
- Created: 2020-11-03T10:56:38.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2022-06-24T12:04:50.000Z (about 3 years ago)
- Last Synced: 2025-03-28T04:57:31.784Z (4 months ago)
- Language: JavaScript
- Size: 54.7 KB
- Stars: 0
- Watchers: 1
- 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