webpack.dev.dll.js 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. 'i18next', 'i18next-browser-languagedetector',
  19. 'jquery-slimscroll',
  20. 'lodash', 'pako',
  21. 'markdown-it', 'csv-to-markdown-table',
  22. 'react', 'react-dom',
  23. 'react-bootstrap', 'react-bootstrap-typeahead', 'react-i18next', 'react-dropzone', 'react-copy-to-clipboard',
  24. 'socket.io-client',
  25. 'toastr',
  26. 'xss',
  27. ],
  28. },
  29. output: {
  30. path: helpers.root('public/dll'),
  31. filename: 'dll.js',
  32. library: 'growi_dlls',
  33. },
  34. resolve: {
  35. extensions: ['.js', '.json'],
  36. modules: [helpers.root('src'), helpers.root('node_modules')],
  37. },
  38. plugins: [
  39. new webpack.DllPlugin({
  40. path: helpers.root('public/dll/manifest.json'),
  41. name: 'growi_dlls',
  42. }),
  43. ],
  44. };