{"id":20681156,"url":"https://github.com/imweb/fis-parser-rem","last_synced_at":"2025-04-22T11:33:41.740Z","repository":{"id":57237053,"uuid":"55753786","full_name":"imweb/fis-parser-rem","owner":"imweb","description":"fis px自动转化成rem插件","archived":false,"fork":false,"pushed_at":"2016-08-26T05:28:36.000Z","size":4,"stargazers_count":48,"open_issues_count":1,"forks_count":9,"subscribers_count":27,"default_branch":"master","last_synced_at":"2025-03-29T14:41:25.972Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/imweb.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":"2016-04-08T05:51:42.000Z","updated_at":"2025-03-21T08:21:42.000Z","dependencies_parsed_at":"2022-08-26T15:10:11.940Z","dependency_job_id":null,"html_url":"https://github.com/imweb/fis-parser-rem","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imweb%2Ffis-parser-rem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imweb%2Ffis-parser-rem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imweb%2Ffis-parser-rem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imweb%2Ffis-parser-rem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imweb","download_url":"https://codeload.github.com/imweb/fis-parser-rem/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250232543,"owners_count":21396661,"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-11-16T22:09:50.402Z","updated_at":"2025-04-22T11:33:41.708Z","avatar_url":"https://github.com/imweb.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fis-parser-rem\n\nfis px自动转化成rem插件\n\n## fis.conf\n\n### CSS\n\n```javascript\nfis.match('*.css', {\n    parser: [ \n        fis.plugin('rem')\n    ]\n})\n```\n\n### SCSS\n\n```javascript\nfis.match('*.scss', {\n    rExt: '.css',\n    parser: [ \n        fis.plugin('node-sass'),\n        fis.plugin('rem')\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; /* @rem */\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## Option\n\n- rem `{Number}` 1rem=多少px `default` 18\n- min `{Number}` 最小转化值 `default` 3\n- exclude `{Array.\u003cString\u003e}` 忽略的样式 `default` `['width', 'height', 'background', 'background-size']`\n\n## Question\n\n- 如何忽略整个文件? 在文件头添加`/* @norem */`即可\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimweb%2Ffis-parser-rem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimweb%2Ffis-parser-rem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimweb%2Ffis-parser-rem/lists"}