{"id":16490704,"url":"https://github.com/dave-wind/webpack-custom-water","last_synced_at":"2026-07-17T12:32:56.120Z","repository":{"id":174889522,"uuid":"135282186","full_name":"dave-wind/webpack-custom-water","owner":"dave-wind","description":"custom webpack for water project ","archived":false,"fork":false,"pushed_at":"2018-05-30T10:45:12.000Z","size":52,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-10-25T01:59:05.621Z","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/dave-wind.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2018-05-29T10:51:36.000Z","updated_at":"2018-05-31T03:28:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"617b8146-f480-4954-b637-3891f5ad9fc8","html_url":"https://github.com/dave-wind/webpack-custom-water","commit_stats":null,"previous_names":["dave-wind/webpack-custom-water"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dave-wind/webpack-custom-water","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dave-wind%2Fwebpack-custom-water","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dave-wind%2Fwebpack-custom-water/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dave-wind%2Fwebpack-custom-water/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dave-wind%2Fwebpack-custom-water/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dave-wind","download_url":"https://codeload.github.com/dave-wind/webpack-custom-water/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dave-wind%2Fwebpack-custom-water/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35582007,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-17T02:00:06.162Z","response_time":116,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-10-11T13:48:47.490Z","updated_at":"2026-07-17T12:32:56.065Z","avatar_url":"https://github.com/dave-wind.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## webpack custom\n\n\n#### babelrc\n\u003e .babelrc配置 主要有 对 预设presets 和插件 plugins 进行配置 \n\n* presets 创建预设 早起有很多插件  \ncheck-es2015-constants\",\"es2015-arrow-functions\",\"es2015-block-scoped-functions  \n为了简化配置 用 babel-preset-env 代替缩写为 es2015\n* babel 还需要 转义器 stage 这里就用 stage-2  用它无需要很多插件 同样支持动态引入  \n\n```json\n\"presets\": [\n    \"es2015\",\n    \"stage-2\"\n  ]\n```\n* 如果想指定浏览器限制 amd commonjs规范 可以用target  \n* modules 默认false commonjs规范  就是 module.exports\n* targets 内 borwsers 内部写的是搜索语句 指定浏览器兼容版本 详情可看 http://browserl.ist/\n\n```json\n[\"env\", {\n      \"modules\": false,\n      \"targets\": {\n        \"browsers\": [\"\u003e 1%\", \"last 2 versions\", \"not ie \u003c= 8\"]\n      }\n}]\n\n```\n\n* comments 在生成的文件中，不产生注释，boolean类型，webpack插件中的UglifyJsPlugin也同样集成了这个功能\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdave-wind%2Fwebpack-custom-water","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdave-wind%2Fwebpack-custom-water","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdave-wind%2Fwebpack-custom-water/lists"}