Compare Webpack Bundles
Generate webpack bundles in different scenarios.
This project collects bundles that are generated by different source files using CommonJS or ES2015 modules. It is aimed to understand requiring machanism of webpack in browser.
build
install dependencies:
yarn install
rebuild each webpack configs under /examples
:
yarn build
build a single config:
yarn run webpack -- --config examples/[example-folder]/webpack.config.js
test
To ensure bundles can be excuted correctly in browser.
note: not include
HMR
anddynamic import
yarn test