Skip to content

Instantly share code, notes, and snippets.

@HamidOsouli-zz
Created February 3, 2019 12:21
Show Gist options
  • Save HamidOsouli-zz/927b255bdf0500a905583231835e8356 to your computer and use it in GitHub Desktop.
Save HamidOsouli-zz/927b255bdf0500a905583231835e8356 to your computer and use it in GitHub Desktop.
Common vendor chunk webpack
templateList.push(
new CommonsChunkPlugin({
name: 'vendor',
filename: 'vendor.weedoo.js',
minChunks: ({ resource }) => /node_modules/.test(resource),
})
);
templateList.push(
new CommonsChunkPlugin({
name: 'common',
filename: 'common.weedoo.js',
chunks: ['panel', 'customer']
})
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment