{"name":"postcss-px2rem","description":"Postcss version of px2rem","version":"0.1.2","homepage":"https://github.com/songsiqi/px2rem-postcss","author":{"name":"songsiqi","email":"songsiqi2006@126.com"},"repository":{"type":"git","url":"git@github.com:songsiqi/px2rem-postcss.git"},"engines":{"node":">= 0.10.0"},"dependencies":{"postcss":"^4.1.11","px2rem":"~0.3.0","extend":"~2.0.0"},"devDependencies":{"mocha":"^2.1.0","cssmin":"~0.4.3","autoprefixer-core":"~5.2.1"},"directories":{"test":"test"},"scripts":{"test":"mocha"},"main":"index.js","keywords":["px2rem","postcss-plugin"],"license":"MIT","gitHead":"77959a7dea17deea577e5efef33f794d4ad75873","bugs":{"url":"https://github.com/songsiqi/px2rem-postcss/issues"},"_id":"postcss-px2rem@0.1.2","_shasum":"35dda56f48f9e39a12d88c8e1675ac8e1e54630d","_from":".","_npmVersion":"1.4.23","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"songsiqi","email":"songsiqi2006@126.com"}],"dist":{"shasum":"35dda56f48f9e39a12d88c8e1675ac8e1e54630d","tarball":"http://registry-npm.ywwl.com/postcss-px2rem/download/postcss-px2rem-0.1.2.tgz","integrity":"sha512-17EdIOdb6MBYpvgF1d7BvNJkkpclmNsoQep6VX/zVeoycu5z2vrnzaMYf2n41fsqKH84CYZ9Sm5+1byoEdAj7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIC2F3MJ5+s45vIPNVqvdoPcNayKELmVPEziccOhPvr0xAiEA4gIu4CIxiVRDmlR42XTmfDMtwMtD6PWzJUozHm0JFpk="}],"size":5909,"noattachment":false,"key":"/postcss-px2rem/-/postcss-px2rem-0.1.2.tgz"},"readme":"# postcss-px2rem\n\nThis is a [postcss](https://www.npmjs.com/package/postcss) plugin of [px2rem](https://www.npmjs.com/package/px2rem).\n\n[![NPM version][npm-image]][npm-url]\n[![Build status][travis-image]][travis-url]\n[![Downloads][downloads-image]][downloads-url]\n\n[npm-image]: https://img.shields.io/npm/v/postcss-px2rem.svg?style=flat-square\n[npm-url]: https://npmjs.org/package/postcss-px2rem\n[travis-image]: https://img.shields.io/travis/songsiqi/px2rem-postcss.svg?style=flat-square\n[travis-url]: https://travis-ci.org/songsiqi/px2rem-postcss\n[downloads-image]: http://img.shields.io/npm/dm/postcss-px2rem.svg?style=flat-square\n[downloads-url]: https://npmjs.org/package/postcss-px2rem\n\n## Usage\n\n### Node\n\n```\nvar postcss = require('postcss');\nvar px2rem = require('postcss-px2rem');\nvar originCssText = '...';\nvar newCssText = postcss().use(px2rem({remUnit: 64})).process(originCssText).css;\n```\n\n**Please see [px2rem](https://www.npmjs.com/package/px2rem) for more information about the features and usage of px2rem.**\n\n### Gulp\n\n```\nnpm install gulp-postcss\n```\n\n```\nvar gulp = require('gulp');\nvar postcss = require('gulp-postcss');\nvar px2rem = require('postcss-px2rem');\n\ngulp.task('default', function() {\n  var processors = [px2rem({remUnit: 75})];\n  return gulp.src('./src/*.css')\n    .pipe(postcss(processors))\n    .pipe(gulp.dest('./dest'));\n});\n```\n\n### Webpack\n\n```\nnpm install postcss-loader\n```\n\n```\nvar px2rem = require('postcss-px2rem');\n\nmodule.exports = {\n  module: {\n    loaders: [\n      {\n        test: /\\.css$/,\n        loader: \"style-loader!css-loader!postcss-loader\"\n      }\n    ]\n  },\n  postcss: function() {\n    return [px2rem({remUnit: 75})];\n  }\n}\n```\n\n### Grunt\n\n```\nnpm install grunt-postcss\n```\n\n```\nmodule.exports = function(grunt) {\n  grunt.initConfig({\n    postcss: {\n      options: {\n        processors: [\n          px2rem({remUnit: 75})\n        ]\n      },\n      dist: {\n        src: 'src/*.css',\n        dest: 'build'\n      }\n    }\n  });\n  grunt.loadNpmTasks('grunt-postcss');\n  grunt.registerTask('default', ['postcss']);\n}\n```\n\n## Change Log\n\n### 0.3.0\n\n* Deps: px2rem@~0.5.0\n  * Support Animation keyframes (no `/*px*/` comment).\n\n### 0.2.0\n\n* Deps: postcss@^5.0.0\n\n### 0.1.6\n\n* Deps: px2rem@~0.4.0\n  * The generated [data-dpr] rules follow the origin rule, no longer placed at the end of the whole style sheet.\n  * Optimize 0px, do not generate 3 [data-dpr] rules.\n\n### 0.1.5\n\n* Do not extend current root node.\n\n### 0.1.4\n\n* Fix bug while working with webpack loader.\n\n### 0.1.0\n\n* First release.\n\n## License\n\nMIT\n","publish_time":1435686832561,"_cnpm_publish_time":1435686832561,"dist-tags":{"latest":"0.3.0"}}