webpack.dev.dll.js 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /**
  2. * @author: Yuki Takei <yuki@weseek.co.jp>
  3. */
  4. const path = require('path');
  5. const webpack = require('webpack');
  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. 'i18next', 'i18next-browser-languagedetector',
  19. 'jquery-slimscroll',
  20. 'lodash', 'pako',
  21. 'markdown-it', 'csv-to-markdown-table',
  22. 'react', 'react-dom',
  23. 'reactstrap', 'react-bootstrap-typeahead',
  24. 'react-i18next', 'react-dropzone', 'react-hotkeys', 'react-copy-to-clipboard', 'react-waypoint',
  25. 'socket.io-client',
  26. 'toastr',
  27. 'unstated',
  28. 'xss',
  29. ],
  30. },
  31. output: {
  32. path: path.resolve(__dirname, '../public/dll'),
  33. filename: 'dll.js',
  34. library: 'growi_dlls',
  35. },
  36. resolve: {
  37. extensions: ['.js', '.json'],
  38. modules: [path.resolve(__dirname, '../src'), path.resolve(__dirname, '../node_modules')],
  39. },
  40. plugins: [
  41. new webpack.DllPlugin({
  42. path: path.resolve(__dirname, '../public/dll/manifest.json'),
  43. name: 'growi_dlls',
  44. }),
  45. ],
  46. };