{"action":"created","issue":{"url":"https://api.github.com/repos/Tencent/wepy/issues/817","repository_url":"https://api.github.com/repos/Tencent/wepy","labels_url":"https://api.github.com/repos/Tencent/wepy/issues/817/labels{/name}","comments_url":"https://api.github.com/repos/Tencent/wepy/issues/817/comments","events_url":"https://api.github.com/repos/Tencent/wepy/issues/817/events","html_url":"https://github.com/Tencent/wepy/issues/817","id":290362219,"number":817,"title":"能否新增px转rpx的功能？","user":{"login":"js5323","id":6006860,"avatar_url":"https://avatars1.githubusercontent.com/u/6006860?v=4","gravatar_id":"","url":"https://api.github.com/users/js5323","html_url":"https://github.com/js5323","followers_url":"https://api.github.com/users/js5323/followers","following_url":"https://api.github.com/users/js5323/following{/other_user}","gists_url":"https://api.github.com/users/js5323/gists{/gist_id}","starred_url":"https://api.github.com/users/js5323/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/js5323/subscriptions","organizations_url":"https://api.github.com/users/js5323/orgs","repos_url":"https://api.github.com/users/js5323/repos","events_url":"https://api.github.com/users/js5323/events{/privacy}","received_events_url":"https://api.github.com/users/js5323/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-01-22T06:23:18Z","updated_at":"2018-04-03T02:12:32Z","closed_at":"2018-01-23T08:50:25Z","author_association":"NONE","body":"关于css这块，能否新增px转rpx的plugins？？或者能新增自定义plugin的方式能力"},"comment":{"url":"https://api.github.com/repos/Tencent/wepy/issues/comments/378105534","html_url":"https://github.com/Tencent/wepy/issues/817#issuecomment-378105534","issue_url":"https://api.github.com/repos/Tencent/wepy/issues/817","id":378105534,"user":{"login":"taichenglu","id":3377075,"avatar_url":"https://avatars1.githubusercontent.com/u/3377075?v=4","gravatar_id":"","url":"https://api.github.com/users/taichenglu","html_url":"https://github.com/taichenglu","followers_url":"https://api.github.com/users/taichenglu/followers","following_url":"https://api.github.com/users/taichenglu/following{/other_user}","gists_url":"https://api.github.com/users/taichenglu/gists{/gist_id}","starred_url":"https://api.github.com/users/taichenglu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taichenglu/subscriptions","organizations_url":"https://api.github.com/users/taichenglu/orgs","repos_url":"https://api.github.com/users/taichenglu/repos","events_url":"https://api.github.com/users/taichenglu/events{/privacy}","received_events_url":"https://api.github.com/users/taichenglu/received_events","type":"User","site_admin":false},"created_at":"2018-04-03T02:12:31Z","updated_at":"2018-04-03T02:12:31Z","author_association":"NONE","body":"@panhezeng @Gcaufy  我后来想，只要匹配 `[数字]px` 转成 `[数字]rpx` 就可以了\r\n\r\n```\r\nreplace: {\r\n  filter: /\\.wxss$/,\r\n  config: {\r\n    find: /[0-9]px/ig,\r\n    replace: function (matchs) {\r\n      return `${matchs.slice(0, 1)}rpx`\r\n    }\r\n  }\r\n}\r\n```"}}
{"actor":{"display_login":"taichenglu"}}