{"id":26702043,"url":"https://github.com/zzlw/webpack-dev-super","last_synced_at":"2025-04-13T11:26:29.188Z","repository":{"id":101887589,"uuid":"96197545","full_name":"zzlw/webpack-dev-super","owner":"zzlw","description":"这个脚手架工程模板用于快速启动基于 React + Webpack 为技术栈的前端项目","archived":false,"fork":false,"pushed_at":"2022-12-09T18:17:23.000Z","size":2899,"stargazers_count":17,"open_issues_count":1,"forks_count":5,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-27T02:39:02.358Z","etag":null,"topics":["babel","react","redux","sass","webpack"],"latest_commit_sha":null,"homepage":"","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/zzlw.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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":"2017-07-04T08:58:03.000Z","updated_at":"2023-08-22T09:39:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"40daeb3e-8f26-4d1c-81b5-bfd91a5d9608","html_url":"https://github.com/zzlw/webpack-dev-super","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/zzlw%2Fwebpack-dev-super","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzlw%2Fwebpack-dev-super/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzlw%2Fwebpack-dev-super/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zzlw%2Fwebpack-dev-super/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zzlw","download_url":"https://codeload.github.com/zzlw/webpack-dev-super/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248704704,"owners_count":21148428,"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","react","redux","sass","webpack"],"created_at":"2025-03-27T02:33:04.299Z","updated_at":"2025-04-13T11:26:29.181Z","avatar_url":"https://github.com/zzlw.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 基于React + Webpack + Babel的项目脚手架\n\n\u003e 这个脚手架工程模板用于快速启动基于 React + Webpack 为技术栈的前端项目\n\n[![GitHub issues](https://img.shields.io/github/issues/zzlw/webpack-dev-super.svg)](https://github.com/zzlw/webpack-dev-super/issues)\n[![GitHub forks](https://img.shields.io/github/forks/zzlw/webpack-dev-super.svg)](https://github.com/zzlw/webpack-dev-super/network)\n[![GitHub stars](https://img.shields.io/github/stars/zzlw/webpack-dev-super.svg)](https://github.com/zzlw/webpack-dev-super/stargazers)\n[![GitHub license](https://img.shields.io/github/license/zzlw/webpack-dev-super.svg)](https://github.com/zzlw/webpack-dev-super/blob/master/LICENSE)\n\n\n## Features 功能特性\n\n- 可以解析 JSX 语法\n- 可以解析 ES6 语法新特性\n- 支持 LESS 预处理器\n- 支持 SASS 预处理器\n- 编译完成自动打开浏览器\n- 区分开发环境和生产环境\n- 实现组件级热更新\n- 实现代码的热替换，浏览器实时刷新查看效果\n- 实现代码按需加载\n- 分离业务功能代码和公共依赖代码\n- 单独分离 CSS 样式文件\n- 支持编译 HTML 模板\n- 支持文件 MD5 戳，解决文件缓存问题\n- 支持图片、图标字体等资源的编译\n- 支持浏览器源码调试\n- 可以进行代码规则校验\n- 支持 mocha 测试用例运行\n- 支持一行命令产出待部署资源\n\n## 1. start\n\n```\n$ git clone https://github.com/zzlw/webpack-dev-super\n$ cd webpack-dev-super\n$ npm install\n```\n## 2. dev\n### 2.1 开发调试\n```\n//首先运行dll预打包\n$ npm run start:pre\n//打包完成，启动项目\n$ npm start\n```\n\n查看效果` http://127.0.0.1:9090`\n\n### 2.2 代码检查\n```\n$ npm run lint\n```\n\n### 2.3 测试用例\n```\n$ npm run test:watch\n```\n\n### 2.4 产出资源\n```\n$ npm run build\n```\n\n## 3. 技术栈\n\n- [x] [Webpack](https://webpack.github.io)\n- [x] [React](https://facebook.github.io/react/)\n- [x] [ES6](http://es6.ruanyifeng.com/)\n- [x] [Redux](https://github.com/rackt/redux)\n- [x] [React-router](https://github.com/rackt/react-router-redux)\n- [x] [Babel](https://babeljs.io/)\n- [ ] [immutable](https://www.npmjs.com/package/immutable)\n- [ ] [redux-immutable](https://www.npmjs.com/package/immutable)\n- [ ] [react-immutable-proptypes](https://www.npmjs.com/package/immutable)\n- [ ] [react-router-redux](https://www.npmjs.com/package/immutable)\n- [ ] [Autoprefixer](https://github.com/postcss/autoprefixer)\n- [ ] [PostCSS](https://github.com/postcss/postcss)\n- [x] [CSS modules](https://github.com/outpunk/postcss-modules)\n- [x] [Less](https://github.com/less/less.js)\n- [x] [Sass](https://github.com/sass/node-sass)\n- [x] [Eslint](https://github.com/eslint/eslint)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzlw%2Fwebpack-dev-super","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzzlw%2Fwebpack-dev-super","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzzlw%2Fwebpack-dev-super/lists"}