Skip to main content
100%

webpack2-config

✓ Published0🌍 Public
VVeronicaM
Last edited Feb 3, 2017
Created on Feb 3, 2017

This example shows a webpack 2 configuration file that sets up separate entry points for app and admin bundles, with output paths and public paths defined for the dist folder. The configuration uses `CommonsChunkPlugin` to extract shared code into a commons bundle, and `ExtractTextPlugin` to handle SCSS compilation into separate CSS files. Module rules apply `url-loader` for images under 10k, `babel-loader` with the `babel-preset-es2015` preset for JavaScript, and `sass-loader` chained through the CSS extraction plugin. The source is a JavaScript module exporting the config object.

AI-generated description

Similar vizzes