webpack.dev.dll.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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. 'axios',
  12. 'browser-bunyan', 'bunyan-format',
  13. 'codemirror', 'react-codemirror2',
  14. 'date-fns',
  15. 'diff2html',
  16. 'debug',
  17. 'entities',
  18. 'growi-commons',
  19. 'i18next', 'i18next-browser-languagedetector',
  20. 'jquery-slimscroll',
  21. 'lodash', 'pako',
  22. 'markdown-it', 'csv-to-markdown-table',
  23. 'react', 'react-dom',
  24. 'react-bootstrap', 'react-bootstrap-typeahead',
  25. 'react-i18next', 'react-dropzone', 'react-hotkeys', 'react-copy-to-clipboard', 'react-waypoint',
  26. 'socket.io-client',
  27. 'toastr',
  28. 'unstated',
  29. 'xss',
  30. ],
  31. },
  32. output: {
  33. path: helpers.root('public/dll'),
  34. filename: 'dll.js',
  35. library: 'growi_dlls',
  36. },
  37. resolve: {
  38. extensions: ['.js', '.json'],
  39. modules: [helpers.root('src'), helpers.root('node_modules')],
  40. },
  41. plugins: [
  42. new webpack.DllPlugin({
  43. path: helpers.root('public/dll/manifest.json'),
  44. name: 'growi_dlls',
  45. }),
  46. ],
  47. };