Skip to content
This repository has been archived by the owner on Sep 25, 2020. It is now read-only.

Commit

Permalink
Compatibility with Autoprefixer 5.2. Close #113
Browse files Browse the repository at this point in the history
  • Loading branch information
nDmitry committed May 29, 2015
1 parent 51eaab6 commit 6088b84
Show file tree
Hide file tree
Showing 8 changed files with 18 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
v3.0.1:
date: 2015-05-29
changes:
- Autoprefixer 5.2 support
v3.0.0:
date: 2015-04-03
changes:
Expand Down
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "grunt-autoprefixer",
"version": "3.0.0",
"version": "3.0.1",
"description": "Parse CSS and add vendor-prefixed CSS properties using the Can I Use database. Based on Autoprefixer.",
"author": {
"name": "Dmitry Nikitenko",
Expand All @@ -27,8 +27,9 @@
],
"dependencies": {
"autoprefixer-core": "^5.1.7",
"chalk": "~1.0.0",
"diff": "~1.3.0",
"chalk": "~1.0.0"
"postcss": "^4.1.11"
},
"devDependencies": {
"grunt": "~0.4.4",
Expand Down
7 changes: 6 additions & 1 deletion tasks/autoprefixer.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

var path = require('path');
var postcss = require('postcss');
var autoprefixer = require('autoprefixer-core');
var diff = require('diff');
var chalk = require('chalk');
Expand Down Expand Up @@ -68,7 +69,11 @@ module.exports = function(grunt) {
diffs: 0
};

prefixer = autoprefixer({browsers: options.browsers, cascade: options.cascade, remove: options.remove});
prefixer = postcss([autoprefixer({
browsers: options.browsers,
cascade: options.cascade,
remove: options.remove
})]);

this.files.forEach(function(f) {
if (!f.src.length) {
Expand Down
2 changes: 1 addition & 1 deletion test/expected/sm.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/expected/sm_inline.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/expected/sm_inline_update.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/expected/sm_update.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion test/expected/sm_update_by_path.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6088b84

Please sign in to comment.