# webpack-config-tool

> Quick configure webpack of tool

Latest version **1.0.6** (published 2018-10-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install webpack-config-tool
pnpm add webpack-config-tool
yarn add webpack-config-tool
bun add webpack-config-tool
```

Provides the command `wct`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.6 |
| Published | 2018-10-24 |
| First published | 2018-08-16 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 13 |
| Unpacked size | 19.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 11 |
| Author | can.yang |
| Maintainers | yacan8 |
| Keywords | webpack |

## Links

- npm: https://www.npmjs.com/package/webpack-config-tool
- Repository: https://github.com/yacan8/webapck-config-tool
- Homepage: https://github.com/yacan8/webapck-config-tool#readme
- Issues: https://github.com/yacan8/webapck-config-tool/issues
- npm.io page: https://npm.io/package/webpack-config-tool

## Dependencies (13)

- [ora](https://npm.io/package/ora.md) ^3.0.0
- [gulp](https://npm.io/package/gulp.md) ^3.9.1
- [chalk](https://npm.io/package/chalk.md) ^2.4.1
- [lodash](https://npm.io/package/lodash.md) ^4.17.10
- [inquirer](https://npm.io/package/inquirer.md) ^6.1.0
- [commander](https://npm.io/package/commander.md) ^2.17.1
- [gulp-util](https://npm.io/package/gulp-util.md) ^3.0.8
- [gulp-debug](https://npm.io/package/gulp-debug.md) ^4.0.0
- [yarn-install](https://npm.io/package/yarn-install.md) ^1.0.0
- [gulp-conflict](https://npm.io/package/gulp-conflict.md) ^0.4.0
- [pretty-hrtime](https://npm.io/package/pretty-hrtime.md) ^1.0.3
- [npm-install-package](https://npm.io/package/npm-install-package.md) ^2.1.0
- [global-module-exists](https://npm.io/package/global-module-exists.md) ^1.0.0

## Alternatives

- [raw-loader](https://npm.io/package/raw-loader.md) — 4.3M weekly downloads
- [plop](https://npm.io/package/plop.md) — 1.4M weekly downloads
- [webpack-deadcode-plugin](https://npm.io/package/webpack-deadcode-plugin.md) — 80.3K weekly downloads
- [@storybook/preact-vite](https://npm.io/package/@storybook/preact-vite.md) — 54.2K weekly downloads
- [vite-plugin-transform](https://npm.io/package/vite-plugin-transform.md) — 2.4K weekly downloads

## Recent versions

- 1.0.6 (latest) — 2018-10-24
- 1.0.5 — 2018-09-02
- 1.0.4 — 2018-08-17
- 1.0.3 — 2018-08-17
- 1.0.2 — 2018-08-17
- 1.0.1 — 2018-08-16
- 1.0.0 — 2018-08-16
- 1.0.0-bate.1 — 2018-08-16

## README

## 基于webpack4的配置生成工具

使用一下plugin加速webpack编译速度：

* happypack
* dllPlugin

babel 配置包括以下：

* 使用 babel-preset-react 让其解析jsx语法
* 使用 babel-preset-stage-0（stage中最高级的套餐），让其对ES6的语法进行解析
* 使用 babel-preset-env，让其针对配置，对其加入不同的 polyfill，这里使用的是 useBuiltIns，针对我们在 base 配置中的 babel-polyfill 进行切割，针对我们在项目中使用到的不兼容的特性进行 polyfill。
* babel-plugin-transform-decorators-legacy 解析装饰器语法，也就是变量前边的@符号，如antd高阶组件中的@Form.create()
* babel-plugin-transform-class-properties 解析 class 语法

### 安装与使用

```
npm i webpack-config-tool -g
```

初始化

```
cd myapp
wct init
```

启动

```
npm run start:dll  // 如果使用dllPlugin
npm run start
```

---
_Source: https://npm.io/package/webpack-config-tool · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
