https://github.com/onlymisaky/webpack-workbench
https://github.com/onlymisaky/webpack-workbench
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/onlymisaky/webpack-workbench
- Owner: onlymisaky
- Created: 2018-07-24T10:53:29.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2019-04-17T05:01:42.000Z (about 7 years ago)
- Last Synced: 2024-12-31T19:42:55.545Z (over 1 year ago)
- Language: JavaScript
- Size: 920 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## scripts
```bash
# 安装依赖
npm i
# 运行调试
npm run dev
# 打包
npm run build
```
### 参数说明
| 参数 | 类型/可选值 | 默认 | 说明 |
| ---------- | ----------- | --------- | ------------------------------------------------------------ |
| `--port` | number | 8080 | `npm run dev --port=8090` 指定端口为 `8090` |
| `--report` | boolean | false | `npm run build --report` 打包完成后显示打包报告 |
| `--entry` | string | `main.ts` | `npm run dev --entry=main.ts` 设置入口文件为 `./src/main.ts` |