ChadKillingsworth / webpack-perf-examples

Simple examples of webpack bundles that can be used for performance tests

Home Page:https://bugs.chromium.org/p/v8/issues/detail?id=5702&q=owner%3Ame&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary%20HW%20OS%20Component%20Stars

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

webpack-perf-examples

Simple examples of webpack bundles that can be used for performance tests

Folders

The 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, in ES modules by calling System.import() (which will soon be changed to the new dynamic import() syntax).

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.

About

Simple examples of webpack bundles that can be used for performance tests

https://bugs.chromium.org/p/v8/issues/detail?id=5702&q=owner%3Ame&colspec=ID%20Type%20Status%20Priority%20Owner%20Summary%20HW%20OS%20Component%20Stars

License:The Unlicense


Languages

Language:JavaScript 100.0%