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
- Host: GitHub
- URL: https://github.com/slashhuang/webpack3-feature
- Owner: slashhuang
- Created: 2017-07-03T11:23:31.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-07-03T15:46:22.000Z (almost 9 years ago)
- Last Synced: 2025-06-03T17:51:22.120Z (about 1 year ago)
- Topics: webpack, webpack3
- Language: JavaScript
- Size: 664 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
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

- 2. webpack.optimize.ModuleConcatenationPlugin

- 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