{"id":14976310,"url":"https://github.com/nikfranki/react-dev-and-prod","last_synced_at":"2026-02-12T01:33:02.482Z","repository":{"id":94747620,"uuid":"124081086","full_name":"NikFranki/react-dev-and-prod","owner":"NikFranki","description":"Webpack + React 系列配置","archived":false,"fork":false,"pushed_at":"2018-03-07T01:48:51.000Z","size":148,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-11T14:43:16.883Z","etag":null,"topics":["babel","less","react","react-router","webpack2"],"latest_commit_sha":null,"homepage":"","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/NikFranki.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-03-06T13:18:53.000Z","updated_at":"2018-03-07T01:50:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"be03a3e1-a796-4abb-92ad-28136703841e","html_url":"https://github.com/NikFranki/react-dev-and-prod","commit_stats":{"total_commits":1,"total_committers":1,"mean_commits":1.0,"dds":0.0,"last_synced_commit":"ddc6f3d5295ce54bb3d5607f46ac7967158c5b3a"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikFranki%2Freact-dev-and-prod","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikFranki%2Freact-dev-and-prod/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikFranki%2Freact-dev-and-prod/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NikFranki%2Freact-dev-and-prod/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NikFranki","download_url":"https://codeload.github.com/NikFranki/react-dev-and-prod/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241261344,"owners_count":19936009,"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":["babel","less","react","react-router","webpack2"],"created_at":"2024-09-24T13:53:41.205Z","updated_at":"2026-02-12T01:33:02.444Z","avatar_url":"https://github.com/NikFranki.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## React + Webpack 系列配置\n\nReact + Webpack 区分开发、生成环境的打包配置，开发环境下配置热更新、公共文件、第三方文件抽取、代码分割、按需加载、自动生成html模板文件并导入对应的css和js文件，生成环境进行了压缩混淆、其他与开发环境类似；\n\n## 运行\n\n为了项目的正确运行，请确保 npm 或 yarn 已经安装\n\n```sh\n# 安装项目依赖\nnpm install 或 yarn install\n# 运行项目\nnpm start 或 yarn start\n```\n\n## 打包\n\n生产环境打包需要使用以下命令\n\n```sh\n# 生成dist目录\nnpm run build:prod 或 yarn build:prod\n# dist目录挂载的服务器\nnpm run prod 或 yarn prod\n```\n\n### 参考资料\n\n- [Webpack docs](https://webpack.js.org/concepts/)\n- [webpack 多页面构建](https://github.com/shaozj/blog/issues/11)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikfranki%2Freact-dev-and-prod","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnikfranki%2Freact-dev-and-prod","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnikfranki%2Freact-dev-and-prod/lists"}