Guest User

Untitled

a guest
Jul 15th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.71 KB | None | 0 0
  1. // webpack.config.js
  2.  
  3. module.exports = {
  4. context: __dirname,
  5.  
  6. entry: {
  7. vendor: ['название вашей библиотеки'],
  8. app: 'путь к главному файлу'
  9. },
  10.  
  11. output: {
  12. filename: '[name].js',
  13. pathinfo: true
  14. },
  15.  
  16. target: 'web',
  17.  
  18. mode: 'development',
  19.  
  20. module: {
  21. rules: [...Ваши лоадеры]
  22. },
  23.  
  24. optimization: {
  25. runtimeChunk: true,
  26. splitChunks: {
  27. cacheGroups: {
  28. vendor: {
  29. chunks: 'initial',
  30. name: 'vendor',
  31. test: 'vendor',
  32. enforce: true
  33. }
  34. }
  35. }
  36. }
  37. };
Add Comment
Please, Sign In to add comment