An open API service indexing awesome lists of open source software.

https://github.com/slashhuang/webpack3-feature

A feature demonstration for webpack3
https://github.com/slashhuang/webpack3-feature

webpack webpack3

Last synced: 2 months ago
JSON representation

A feature demonstration for webpack3

Awesome Lists containing this project

README

          

## webpack3-feature

A repository for you to understand diff feature for webpack3 versus webpack2

## How to run

```bash
# install dependencies
npm run i
```

## run webpack2 repo

```bash
cd webpack2
npm start
```

## run webpack3 repo

```bash
cd webpack3
npm start
```

## feature [breaking change]

- 1. node_modules no longer mangle to ~ in stats
![node_modules vs ~](./assets/node_modules.png)

- 2. webpack.optimize.ModuleConcatenationPlugin
![ModuleConcatenationPlugin](./assets/concatenation.png)

- 3. sourceMapFilename now supports [contenthash] [breaking change]

> output.sourceMapFilename

## Internal changes

- child compilations get records and cache assigned (they need a unique name) [breaking change]
- Set is used for Child.modules, Module.chunks, Reason.chunks [breaking change]
- uglifyjs-plugin is moved into separate repository