Using Autoprefixer with Jekyll
11 Jan 2015Autoprefixer is a tool that handles the addition of vendor prefixes for CSS rules - allowing you to just write pure CSS when developing. It is easy to integrate with Jekyll by performing the following steps:
Add the following to your Gemfile:
Add the following to your _config.yml:
Ensuring all your stylesheets are stored under "_assets/stylesheets/", include your CSS files using the Jekyll-Assets method like so (replace style.css with your stylesheet name):
The end result generated will be something like this:
You can check if the process has been successful by opening the generated stylesheets in the _site/assets/ folder, you should see that prefixes have been added for the appropriate features.
Done.