{"id":13671086,"url":"https://github.com/Jinjiang/px2rem-loader","last_synced_at":"2025-04-27T14:33:04.469Z","repository":{"id":52553569,"uuid":"37740980","full_name":"Jinjiang/px2rem-loader","owner":"Jinjiang","description":"Webpack loader for px2rem css file","archived":true,"fork":false,"pushed_at":"2021-04-26T09:10:00.000Z","size":59,"stargazers_count":204,"open_issues_count":2,"forks_count":33,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-23T20:46:24.430Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Jinjiang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-19T19:12:50.000Z","updated_at":"2023-10-23T03:48:36.000Z","dependencies_parsed_at":"2022-09-23T03:41:56.736Z","dependency_job_id":null,"html_url":"https://github.com/Jinjiang/px2rem-loader","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jinjiang%2Fpx2rem-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jinjiang%2Fpx2rem-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jinjiang%2Fpx2rem-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Jinjiang%2Fpx2rem-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Jinjiang","download_url":"https://codeload.github.com/Jinjiang/px2rem-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251095732,"owners_count":21535537,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T09:00:58.563Z","updated_at":"2025-04-27T14:33:04.165Z","avatar_url":"https://github.com/Jinjiang.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# px2rem-loader\n\na [webpack](http://webpack.github.io/) loader for [px2rem](https://github.com/songsiqi/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/px2rem-loader.svg\n[npm-url]: https://npmjs.org/package/px2rem-loader\n[travis-image]: https://img.shields.io/travis/Jinjiang/px2rem-loader.svg\n[travis-url]: https://travis-ci.org/Jinjiang/px2rem-loader\n[downloads-image]: http://img.shields.io/npm/dm/px2rem-loader.svg\n[downloads-url]: https://npmjs.org/package/px2rem-loader\n\n## Install\n\n`npm install px2rem-loader`\n\n## webpack config\n\n```\nmodule.exports = {\n  // ...\n  module: {\n    rules: [{\n      test: /\\.css$/,\n      use: [{\n        loader: 'style-loader'\n      }, {\n        loader: 'css-loader'\n      }, {\n        loader: 'px2rem-loader',\n        // options here\n        options: {\n          remUnit: 75,\n          remPrecision: 8\n        }\n      }]\n    }]\n  }\n}\n```\n\n\nPlease see [px2rem](https://github.com/songsiqi/px2rem) for more information about query parameters of px2rem.\n\n## Example\n\nSee an example [here](./examples).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJinjiang%2Fpx2rem-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJinjiang%2Fpx2rem-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJinjiang%2Fpx2rem-loader/lists"}