{"id":15065703,"url":"https://github.com/fe6/water-loader","last_synced_at":"2026-01-02T10:56:07.184Z","repository":{"id":39278007,"uuid":"230833405","full_name":"fe6/water-loader","owner":"fe6","description":"统一的 Water 标签编写规范","archived":false,"fork":false,"pushed_at":"2023-01-07T13:16:02.000Z","size":1457,"stargazers_count":0,"open_issues_count":21,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-03-25T03:21:57.888Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fe6.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":"2019-12-30T02:30:22.000Z","updated_at":"2019-12-30T10:05:11.000Z","dependencies_parsed_at":"2023-02-07T06:31:09.640Z","dependency_job_id":null,"html_url":"https://github.com/fe6/water-loader","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fe6%2Fwater-loader","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fe6%2Fwater-loader/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fe6%2Fwater-loader/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fe6%2Fwater-loader/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fe6","download_url":"https://codeload.github.com/fe6/water-loader/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243806114,"owners_count":20350783,"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-09-25T00:45:51.534Z","updated_at":"2026-01-02T10:56:07.151Z","avatar_url":"https://github.com/fe6.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# water-loader\n\u003e 统一的 Water 标签编写规范\n\n[![@fe6/water-loader](https://img.shields.io/npm/v/@fe6/water-loader.svg?style=flat-square)](https://www.npmjs.org/package/@fe6/water-loader)\n[![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)](https://github.com/prettier/prettier)\n\n## 预览\n\n可进入 `./demo/` 文件夹，安装以来之后，执行 `npm start` ，进行查看。\n\n##### 若 `Button` 转译成 `w-button`\n\n不需要加参数，效果如下\n\n1. 转译前：\n\n![Button](./img/loader1.png)\n\n2. 转移后：\n\n![w-button](./img/loader3.png)\n\n##### 若 `w-button` 转译成 `Button`\n\n需要在 `./demo/webpack.config.js` 中加 `prefix: true` ，效果如下\n\n1. 转译前：\n\n![Button](./img/loader2.png)\n\n2. 转移后：\n\n![w-button](./img/loader4.png)\n\n## 使用\n\n```js\n// 配置 webpack.config.js\nmodule.exports = {\n  // ... 省略其他配置\n  module: {\n    rules: [\n      {\n        test: /\\.vue$/,\n        use: [\n          // ... 省略其他配置\n          {\n            loader: '@fe6/water-loader',\n            options: {\n              prefix: true, // `w-button` 转译成 `Button`\n            },\n          },\n        ],\n      },\n    ],\n  },\n};\n```\n\n## 说明\n\n引用了 [water-helper-maps](https://github.com/fe6/water-helper-maps) 中的标签对照。完整标签请移步 [water-helper-maps](https://github.com/fe6/water-helper-maps/blob/master/src/maps/water-tags.json) 。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffe6%2Fwater-loader","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffe6%2Fwater-loader","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffe6%2Fwater-loader/lists"}