webpack.dev.dll.js 1.1 KB

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