Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/barraponto/neutrino-middleware-postcss
PostCSS support in Neutrino
https://github.com/barraponto/neutrino-middleware-postcss
neutrino neutrino-preset postcss webpack
Last synced: about 1 month ago
JSON representation
PostCSS support in Neutrino
- Host: GitHub
- URL: https://github.com/barraponto/neutrino-middleware-postcss
- Owner: barraponto
- Created: 2017-03-13T02:44:52.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-21T16:54:28.000Z (about 7 years ago)
- Last Synced: 2024-11-05T18:06:20.771Z (about 2 months ago)
- Topics: neutrino, neutrino-preset, postcss, webpack
- Language: JavaScript
- Homepage: https://www.npmjs.com/package/neutrino-middleware-postcss
- Size: 76.2 KB
- Stars: 6
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Neutrino PostCSS middleware
[![Greenkeeper badge](https://badges.greenkeeper.io/barraponto/neutrino-preset-postcss.svg)](https://greenkeeper.io/)
[![NPM version][npm-image]][npm-url] [![NPM downloads][npm-downloads]][npm-url]
[![Join Slack][slack-image]][slack-url]`neutrino-middleware-postcss` is a Neutrino middleware that adds support for
PostCSS plugins.## Documentation
Install this middleware to your development dependencies, then set it up in
`.neutrinorc.js` just like you would with regular postcss-loader:```js
const autoprefixer = require('autoprefixer');module.exports = {
use: [
"neutrino-preset-web",
["neutrino-middleware-postcss", {
plugins: [
autoprefixer()
]
}]
],
...
};
```## cssnext
Just use [neutrino-preset-postcss-cssnext][cssnext-preset].
## Using with ExtractTextPlugin
This preset works well with [neutrino-preset-extractstyles][npe-package].
[postcss-config-docs]: https://github.com/michael-ciniawsky/postcss-load-config#usage
[cssnext-preset]: https://npmjs.org/package/neutrino-preset-cssnext
[npe-package]: https://npmjs.org/package/neutrino-preset-extractstyles
[npm-image]: https://img.shields.io/npm/v/neutrino-middleware-postcss.svg
[npm-downloads]: https://img.shields.io/npm/dt/neutrino-middleware-postcss.svg
[npm-url]: https://npmjs.org/package/neutrino-middleware-postcss
[slack-image]: https://neutrino-slack.herokuapp.com/badge.svg
[slack-url]: https://neutrino-slack.herokuapp.com/