Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const path = require('path');
- const webpack = require('webpack');
- module.exports = {
- entry: {
- one: './src/one.js',
- two: './src/two.js',
- three: './src/three.js',
- },
- output: {
- path: path.resolve(__dirname, 'out'),
- filename: '[name].js',
- },
- plugins: [
- new webpack.optimize.CommonsChunkPlugin({
- name: 'vendor',
- filename: 'vendor.js',
- minChunks: 2,
- }),
- ],
- };
Add Comment
Please, Sign In to add comment