{"id":17099917,"url":"https://github.com/kuangpf/webpack-page-cli","last_synced_at":"2025-10-10T14:37:51.302Z","repository":{"id":30334316,"uuid":"117479472","full_name":"KuangPF/webpack-page-cli","owner":"KuangPF","description":"🛠️ Multi-page development CLI which based on webpack4","archived":false,"fork":false,"pushed_at":"2022-12-09T02:26:22.000Z","size":1588,"stargazers_count":13,"open_issues_count":15,"forks_count":5,"subscribers_count":3,"default_branch":"dev","last_synced_at":"2025-06-02T22:57:51.364Z","etag":null,"topics":["es6","eslint","ie","mobile","multi-page","webpack","webpack-cli","webpack-plugin","webpack4"],"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/KuangPF.png","metadata":{"files":{"readme":"README-zh_CN.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":"2018-01-15T00:42:02.000Z","updated_at":"2021-11-25T06:28:57.000Z","dependencies_parsed_at":"2023-01-14T16:46:42.779Z","dependency_job_id":null,"html_url":"https://github.com/KuangPF/webpack-page-cli","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/KuangPF/webpack-page-cli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KuangPF%2Fwebpack-page-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KuangPF%2Fwebpack-page-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KuangPF%2Fwebpack-page-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KuangPF%2Fwebpack-page-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KuangPF","download_url":"https://codeload.github.com/KuangPF/webpack-page-cli/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KuangPF%2Fwebpack-page-cli/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260273186,"owners_count":22984440,"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":["es6","eslint","ie","mobile","multi-page","webpack","webpack-cli","webpack-plugin","webpack4"],"created_at":"2024-10-14T15:11:46.787Z","updated_at":"2025-10-10T14:37:46.253Z","avatar_url":"https://github.com/KuangPF.png","language":"JavaScript","readme":"# webpack-page-cli\n\n![npm-version](https://img.shields.io/npm/v/webpack-page-cli.svg?style=flat) ![download](https://img.shields.io/npm/dm/webpack-page-cli.svg?style=flat) ![webpack-version](https://img.shields.io/badge/webpack-v4.33.0-brightgreen.svg) \n\n简体中文 | [English](./README.md)\n\n## 安装\n\n``` bash \nnpm install webpack-page-cli -g \n# OR\nyarn global add webpack-page-cli\n```\n\n## 使用\n\n``` bash \nwebpack-page create \u003capp-name\u003e\n```\n\n## 功能\n\n:white_check_mark: es6 ➡️ es5\n\n:white_check_mark: css 预处理器支持（scss less stylus）\n\n:white_check_mark: eslint\n\n:white_check_mark: stylelint\n\n:white_check_mark: 多页面支持\n\n:white_check_mark: 模块热替换 (HRM)\n\n## 相关截图\n\n\u003cimg width=600 src='https://user-images.githubusercontent.com/20694238/58763330-d0b54600-858b-11e9-8234-53a3dd264db4.png'\u003e\n\n## 目录结构\n    webpack-page-cli\n    |\n    ├─build\n    |   ├─build.js              // webpack 打包时运行的文件，配置了控制台的一些输出信息         \n    |   ├─utils.js              // 一些工具类，比如会将开发过程中报的错通知 windows || mac || linux\n    |   ├─webpack.base.conf.js  // webpack基础配置，包含了打包入口以及出口，还有对js,图片,音频,特殊字体的处理等\n    |   ├─webpack.dev.conf.js   // 增加了对css的处理，配置了 webpack-dev-server\n    |   ├─webpack.prod.conf.js  // 增加了对css的处理，打包后进行压缩，已经将static目录下的静态资源copy到打包后的static目录下\n    |   └─webpack.svg           // notifier.notify 在通知客户端显示的图标\n    |\n    |─config\n    |   ├─dev.env.js            // 定义开发标识     \n    |   ├─index.js              // 对于开发和打包的配置，比如开发作用端口，开发的路径，以及生产环境的公共路径等等\n    |   └─prod.env.js           // 定义生产环境标识\n    |  \n    ├─dist\n    |   └─static\n    |   |    ├─css              // 生产环境的 css,支持sass,less,stylus\n    |   |    ├─img              // 生产环境的 img\n    |   |    └─js               // 生产环境的 js\n    |   └─index.html            // 生产环境的 index.html\n    |         \n    ├─node_modules              // nmp install 模块\n    ├─src\n    |   ├─css                   // 开发环境的 css\n    |   ├─img                   // 开发环境的 img\n    |   |─font                  // 开发环境的 font\n    |   |─js                    // 开发环境的 js\n    |   └─index.html            // 开发环境的 index.html\n    |\n    |─static                    // 静态资源，比如一些类库，打包后会直接打包到 /dist/static目录下\n    |   └─.gitkeep\n    ├─.balelrc                  // es6 ==\u003e es5\n    ├─.eslintrc.js              // eslint 配置\n    ├─.stylelintrc.json         // stylelint 配置   \n    ├─.gitignore                // git 提交忽略\n    ├─favicon.icon              // icon\n    ├─package.json              // npm 脚本  项目描述\n    ├─postcss.config.js         // postcss插件配置\n    └─README.md\n\n\n## 多页面配置\n\n该脚手架支持多页面配置，对于多页面配置如下\n- 在 src 根目录下面新建`pageA.html`,在src/js/ 目录下面新建`pageA.js`(页面名称和js名字一定要一样，因为在打包时候会根据`js`文件的名称生成对应的`html`模板)\n- 在`webpack.base.conf.js`入口文件`entry`添加入口，`{pageA: './src/js/pageA.js'}`\n- 如果还有更多的页面，依次类推\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuangpf%2Fwebpack-page-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkuangpf%2Fwebpack-page-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkuangpf%2Fwebpack-page-cli/lists"}