Skip to content

Commit

Permalink
update to postcss 4.1 plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
cuth committed May 28, 2015
1 parent 81bc889 commit 17d861f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
12 changes: 5 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
/**
* pxtorem plugin for postcss
*/

'use strict';

module.exports = function (options) {
var postcss = require('postcss');

module.exports = postcss.plugin('postcss-pxtorem', function (options) {

return function(css) {
return function (css) {

options = options || {};
var rootValue = options.root_value || 16;
Expand Down Expand Up @@ -52,7 +50,7 @@ module.exports = function (options) {
}

};
};
});

function toFixed(number, precision) {
var multiplier = Math.pow(10, precision + 1),
Expand Down
9 changes: 6 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "postcss-pxtorem",
"description": "A CSS post-processor that converts px to rem.",
"version": "2.0.1",
"version": "2.1.0",
"author": "cuth",
"license": "MIT",
"repository": {
Expand All @@ -15,12 +15,15 @@
},
"devDependencies": {
"jasmine-node": "~1.11.0",
"postcss": "^4.0.3"
"postcss": "^4.1.11"
},
"keywords": [
"css",
"rem",
"postcss",
"postcss-plugin"
]
],
"dependencies": {
"postcss": "^4.1.11"
}
}

0 comments on commit 17d861f

Please sign in to comment.