Guest User

Untitled

a guest
May 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. const path = require('path');
  2. const webpack = require('webpack');
  3.  
  4. module.exports = {
  5. entry: {
  6. one: './src/one.js',
  7. two: './src/two.js',
  8. three: './src/three.js',
  9. },
  10. output: {
  11. path: path.resolve(__dirname, 'out'),
  12. filename: '[name].js',
  13. },
  14. plugins: [
  15. new webpack.optimize.CommonsChunkPlugin({
  16. name: 'vendor',
  17. filename: 'vendor.js',
  18. minChunks: 2,
  19. }),
  20. ],
  21. };
Add Comment
Please, Sign In to add comment