webpack.dll.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. /**
  2. * @author: Yuki Takei <yuki@weseek.co.jp>
  3. */
  4. const webpack = require('webpack');
  5. const helpers = require('./helpers');
  6. module.exports = {
  7. mode: 'development',
  8. entry: {
  9. dlls: [
  10. // Libraries
  11. 'axios',
  12. 'babel-polyfill',
  13. 'bootstrap-select',
  14. 'browser-bunyan', 'bunyan-format',
  15. 'codemirror', 'react-codemirror2',
  16. 'clipboard',
  17. 'date-fns',
  18. 'diff2html',
  19. 'debug',
  20. 'entities',
  21. 'i18next', 'i18next-browser-languagedetector',
  22. 'jquery-slimscroll',
  23. 'lodash', 'pako',
  24. 'markdown-it', 'csv-to-markdown-table',
  25. 'react', 'react-dom',
  26. 'react-bootstrap', 'react-bootstrap-typeahead', 'react-i18next', 'react-dropzone',
  27. 'socket.io-client',
  28. 'toastr',
  29. 'xss',
  30. // GROWI Libraries
  31. 'growi-pluginkit',
  32. ]
  33. },
  34. output: {
  35. path: helpers.root('public/dll'),
  36. filename: 'dll.js',
  37. library: 'growi_dlls',
  38. },
  39. resolve: {
  40. extensions: ['.js', '.json'],
  41. modules: [helpers.root('src'), helpers.root('node_modules')],
  42. },
  43. plugins: [
  44. new webpack.DllPlugin({
  45. path: helpers.root('public/dll/manifest.json'),
  46. name: 'growi_dlls'
  47. })
  48. ],
  49. };