{"id":21812887,"url":"https://github.com/neverland/fis3-parser-rem","last_synced_at":"2025-04-13T23:25:22.429Z","repository":{"id":57237275,"uuid":"59744491","full_name":"Neverland/fis3-parser-rem","owner":"Neverland","description":"px转rem fis3插件","archived":false,"fork":false,"pushed_at":"2016-08-15T11:08:44.000Z","size":14,"stargazers_count":33,"open_issues_count":2,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-27T13:42:09.939Z","etag":null,"topics":["fis-rem","fis3","fis3-px-to-rem","fis3-px2rem","fis3-rem","px-to-rem","px2rem","rem"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Neverland.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-05-26T11:19:41.000Z","updated_at":"2025-03-16T15:50:46.000Z","dependencies_parsed_at":"2022-08-26T15:10:19.202Z","dependency_job_id":null,"html_url":"https://github.com/Neverland/fis3-parser-rem","commit_stats":null,"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neverland%2Ffis3-parser-rem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neverland%2Ffis3-parser-rem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neverland%2Ffis3-parser-rem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Neverland%2Ffis3-parser-rem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Neverland","download_url":"https://codeload.github.com/Neverland/fis3-parser-rem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248795361,"owners_count":21162756,"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":["fis-rem","fis3","fis3-px-to-rem","fis3-px2rem","fis3-rem","px-to-rem","px2rem","rem"],"created_at":"2024-11-27T14:25:38.136Z","updated_at":"2025-04-13T23:25:22.403Z","avatar_url":"https://github.com/Neverland.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fis3-parser-rem\n\nfis3 对px单位的css属性自动转化为rem为单位的fis插件。基于rem的解决方案[rem-core](https://www.npmjs.com/package/rem-core)的二次开发。\n\n-----------------\n    - 使用node-css把css解析后,对px为单位对属性进行rem转换处理。\n    - 对文字进行特殊处理追加至产出的css文件之后。\n    - developer只用专注开发,配置灵活方便, 对原始文件无侵入。\n-----------------\n\n## flexible.js\n默认可以配合淘宝的[flexible.js](https://github.com/amfe/lib-flexible)使用\n\n## fis配置\n\n```javascript\nfis.match('*.css', {\n    parser: fis.plugin('rem', {\n        dpr: 2,\n        rem: 750,\n        exclude: ['background-size']\n    })\n})\n```\n\n\n## Usage\n\n```css\nbody {\n    border-top: 1px;\n    border-bottom: 10px;\n    padding: 10px; /* @norem */\n    background-size: 10px 10px;\n}\n```\n\n输出:\n\n```css\nbody {\n    border-top: 1px;\n    border-bottom: 0.5557rem;\n    padding: 10px;\n    background-size: 0.5557rem 0.5557rem;\n}\n```\n\n## changelog\n\n\u003ctable\u003e\n    \u003cthead\u003e\n        \u003ctr\u003e\n            \u003cth\u003e版本\u003c/th\u003e\n            \u003cth\u003e类型\u003c/th\u003e\n            \u003cth\u003e说明\u003c/th\u003e\n        \u003c/tr\u003e\n    \u003c/thead\u003e\n    \u003ctbody\u003e \n        \u003ctr\u003e\n            \u003ctd\u003ev0.0.8\u003c/td\u003e\n            \u003ctd\u003eFeature\u003c/td\u003e\n            \u003ctd\u003e添加原始值\u003c/td\u003e\n        \u003c/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003ev0.0.7\u003c/td\u003e\n            \u003ctd\u003eBugfixed\u003c/td\u003e\n            \u003ctd\u003e全局选择器问题\u003c/td\u003e\n        \u003c/tr\u003e\n    \u003c/tbody\u003e\n\u003c/table\u003e","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneverland%2Ffis3-parser-rem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fneverland%2Ffis3-parser-rem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fneverland%2Ffis3-parser-rem/lists"}