https://github.com/jhnns/webpack-perf-examples
Simple examples of webpack bundles that can be used for performance tests
https://github.com/jhnns/webpack-perf-examples
Last synced: 3 months ago
JSON representation
Simple examples of webpack bundles that can be used for performance tests
- Host: GitHub
- URL: https://github.com/jhnns/webpack-perf-examples
- Owner: jhnns
- License: unlicense
- Created: 2016-12-07T14:47:45.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-12-07T19:11:07.000Z (over 8 years ago)
- Last Synced: 2025-01-24T12:13:37.947Z (5 months ago)
- Language: JavaScript
- Homepage: https://bugs.chromium.org/p/v8/issues/detail?id=5702&q=owner%3Ame&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary%20HW%20OS%20Component%20Stars
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# webpack-perf-examples
Simple examples of webpack bundles that can be used for performance tests
## Folders
The [examples](/examples) folder contains typical webpack projects stripped down to the most essential parts. webpack itself supports three different module formats:
- CommonJS
- AMD
- ES modules### On demand
webpack also supports on demand loading which creates a separate bundle (which is called chunk) that contains all the additional modules.
In CommonJS you create a split point by calling [`require.ensure`](http://wiki.commonjs.org/wiki/Modules/Async/A), in ES modules by calling `System.import()`
(which will soon be changed to the new [dynamic `import()` syntax](https://github.com/tc39/proposal-dynamic-import)).### Minification
webpack does not minify the code by default. However, you can apply an UglifyJsPlugin() which compresses all resulting chunks.
## Usage
Run `npm build` to re-generate the bundles.