webpack.dev.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('../src/lib/util/helpers');
  6. module.exports = {
  7. mode: 'development',
  8. entry: {
  9. dlls: [
  10. // Libraries
  11. '@atlaskit/drawer',
  12. '@atlaskit/navigation-next',
  13. 'axios',
  14. 'browser-bunyan', 'bunyan-format',
  15. 'codemirror', 'react-codemirror2',
  16. 'date-fns',
  17. 'diff2html',
  18. 'debug',
  19. 'entities',
  20. 'growi-commons',
  21. 'i18next', 'i18next-browser-languagedetector',
  22. 'jquery-slimscroll',
  23. 'lodash', 'pako',
  24. 'markdown-it', 'csv-to-markdown-table',
  25. 'react', 'react-dom',
  26. 'reactstrap', 'react-bootstrap-typeahead',
  27. 'react-i18next', 'react-dropzone', 'react-hotkeys', 'react-copy-to-clipboard', 'react-waypoint',
  28. 'socket.io-client',
  29. 'toastr',
  30. 'unstated',
  31. 'xss',
  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. };