Const setup to use babel and babel-loader to transpile code
Some base webpack configuration
setup development tools and server
set webpack to development mode
configuration to setup the app's entry code
setup CSS/styling support
setup a plugin that properly terminates webpack on failures
setup loaders for font files like woff/woff2/eot/ttf
setup loaders for handling images like jpeg/png/gif/svg
setup loading non-js assets when running in SSR mode
base setup for running Karma tests
setup for karma test entry
setup for karma test output
setup for karma test module resolve
setup for locale support
setup for optimizing code for production
With webpack 4 this is not really needed given that webpack4 automatically handles minification with the mode option.
setup whether to auto bundle source to simulate node.js APIs
setup the bundle code output
set webpack to production mode
setup a plugin to do simple text base compile progress reporting
setup for PWA functionalities
setup module resolution
setup resolveLoader option
setup source maps to be inline
setup source maps to be remote
setup a plugin to capture stats and save as stats.json
setup subapp version 2 plugins and config
setup for processing subapp chunks
The webpack config partials xarc uses to compose the final webpack config for building your application.
If you want to customize the webpack config, you can create your own
webpack.config.tsand use these partials to compose your own final webpack config.