{"name":"postcss-px2rem","description":"Postcss version of px2rem","version":"0.3.0","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"},"dependencies":{"postcss":"^5.0.0","px2rem":"~0.5.0"},"devDependencies":{"mocha":"^2.1.0","autoprefixer":"^6.1.0"},"scripts":{"test":"mocha"},"main":"index.js","keywords":["px2rem","postcss-plugin"],"license":"MIT","gitHead":"31a65f4b7bfba4eb1e78dadc5cd99f6b69551b1a","bugs":{"url":"https://github.com/songsiqi/px2rem-postcss/issues"},"_id":"postcss-px2rem@0.3.0","_shasum":"0dfa4e8a268fa7478273f0c4b47c619834894041","_from":".","_npmVersion":"2.7.4","_nodeVersion":"0.12.2","_npmUser":{"name":"songsiqi","email":"songsiqi2006@126.com"},"maintainers":[{"name":"songsiqi","email":"songsiqi2006@126.com"}],"dist":{"shasum":"0dfa4e8a268fa7478273f0c4b47c619834894041","tarball":"http://registry-npm.ywwl.com/postcss-px2rem/download/postcss-px2rem-0.3.0.tgz","integrity":"sha512-ACZRimmOEDma0L/sI5ENREY3BoYB4LNME9iM9VcZU2t598OB9KLEPDYX8JBohNsvwJ+Nvlvk3IcGm0bRqOBC/Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCds/exd9al7fMVTSAUkj7Lkm8hGLw8P8NhKrEjCaXo9wIgCGNPl9VIjVM8LTgpcFB4MG7xdCFWVKCJYAFDgXOi6Wo="}],"size":6547,"noattachment":false,"key":"/postcss-px2rem/-/postcss-px2rem-0.3.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/postcss-px2rem-0.3.0.tgz_1462805966367_0.29627020936459303"},"directories":{},"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":1462805966815,"_cnpm_publish_time":1462805966815,"dist-tags":{"latest":"0.3.0"}}