Skip to content

Commit

Permalink
upgrade to postcss version 4
Browse files Browse the repository at this point in the history
  • Loading branch information
cuth committed Feb 2, 2015
1 parent 40e20bc commit ec0d9a3
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ module.exports = function (options) {
value = value.replace(pxRegex, pxReplace);

// if rem unit already exists, do not add or replace
if (remExists(rule.decls, decl.prop, value)) return;
if (remExists(rule, decl.prop, value)) return;

if (replace) {
decl.value = value;
Expand Down Expand Up @@ -64,4 +64,4 @@ function remExists(decls, prop, value) {
return decls.some(function (decl) {
return (decl.prop === prop && decl.value === value);
});
}
}
48 changes: 24 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,26 @@
{
"name": "pxtorem",
"description": "A CSS post-processor that converts px to rem.",
"version": "1.0.1",
"author": "cuth",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/cuth/pxtorem"
},
"bugs": "https://github.com/cuth/pxtorem/issues",
"main": "index.js",
"scripts": {
"test": "jasmine-node spec"
},
"devDependencies": {
"postcss": "^2.1.0",
"jasmine-node": "~1.11.0"
},
"keywords": [
"css",
"rem",
"postcss",
"postcss-plugin"
]
"name": "pxtorem",
"description": "A CSS post-processor that converts px to rem.",
"version": "1.0.1",
"author": "cuth",
"license": "MIT",
"repository": {
"type": "git",
"url": "git://github.com/cuth/pxtorem"
},
"bugs": "https://github.com/cuth/pxtorem/issues",
"main": "index.js",
"scripts": {
"test": "jasmine-node spec"
},
"devDependencies": {
"jasmine-node": "~1.11.0",
"postcss": "^4.0.3"
},
"keywords": [
"css",
"rem",
"postcss",
"postcss-plugin"
]
}

0 comments on commit ec0d9a3

Please sign in to comment.