webpack.dev.dll.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /* eslint-disable */
  2. /**
  3. * @author: Yuki Takei <yuki@weseek.co.jp>
  4. */
  5. const path = require('path');
  6. const webpack = require('webpack');
  7. module.exports = {
  8. mode: 'development',
  9. entry: {
  10. dlls: [
  11. // Libraries
  12. 'axios',
  13. 'browser-bunyan', 'bunyan-format',
  14. 'codemirror', 'react-codemirror2',
  15. 'date-fns',
  16. 'diff2html',
  17. 'debug',
  18. 'entities',
  19. 'i18next', 'i18next-browser-languagedetector',
  20. 'jquery-slimscroll',
  21. 'lodash', 'pako',
  22. 'markdown-it', 'csv-to-markdown-table',
  23. 'react', 'react-dom',
  24. 'reactstrap', '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: path.resolve(__dirname, '../public/dll'),
  34. filename: 'dll.js',
  35. library: 'growi_dlls',
  36. },
  37. resolve: {
  38. extensions: ['.js', '.json'],
  39. modules: [path.resolve(__dirname, '../src'), path.resolve(__dirname, '../node_modules')],
  40. },
  41. plugins: [
  42. new webpack.DllPlugin({
  43. path: path.resolve(__dirname, '../public/dll/manifest.json'),
  44. name: 'growi_dlls',
  45. }),
  46. ],
  47. };