https://github.com/query/nanoc-filters-autoprefixer
A nanoc filter that processes CSS with Autoprefixer.
https://github.com/query/nanoc-filters-autoprefixer
autoprefixer css nanoc ruby
Last synced: about 2 months ago
JSON representation
A nanoc filter that processes CSS with Autoprefixer.
- Host: GitHub
- URL: https://github.com/query/nanoc-filters-autoprefixer
- Owner: query
- License: mit
- Created: 2020-06-05T08:57:31.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2022-02-09T04:42:52.000Z (over 4 years ago)
- Last Synced: 2025-10-27T14:37:15.358Z (8 months ago)
- Topics: autoprefixer, css, nanoc, ruby
- Language: Ruby
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Nanoc::Filters::Autoprefixer
A [nanoc filter][nanoc-filter] that processes CSS with [Autoprefixer
Rails][autoprefixer-rails].
[nanoc-filter]: https://nanoc.ws/doc/filters/
[autoprefixer-rails]: https://github.com/ai/autoprefixer-rails
## Installation
Add this line to your application's Gemfile:
```ruby
gem 'nanoc-filters-autoprefixer'
```
And then execute:
$ bundle install
Or install it yourself as:
$ gem install nanoc-filters-autoprefixer
## Usage
Add this line to a Ruby file inside your site's `lib` directory:
```ruby
require 'nanoc/filters/autoprefixer'
```
Then use the `:autoprefixer` filter in your `Rules` file:
```ruby
compile '/**/*.css' do
filter :autoprefixer, cascade: false
write :css
end
```
The Autoprefixer documentation has [a list of available
options][autoprefixer-options].
[autoprefixer-options]: https://github.com/postcss/autoprefixer#options
## Contributing
Bug reports and pull requests are welcome on GitHub at
.
## License
The gem is available as open source under the terms of the [MIT License][mit].
[mit]: https://opensource.org/licenses/MIT