webpack.dev.dll.js 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. '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. 'react-bootstrap', 'react-bootstrap-typeahead', 'react-i18next', 'react-dropzone', 'react-copy-to-clipboard',
  25. 'socket.io-client',
  26. 'toastr',
  27. 'xss',
  28. ],
  29. },
  30. output: {
  31. path: helpers.root('public/dll'),
  32. filename: 'dll.js',
  33. library: 'growi_dlls',
  34. },
  35. resolve: {
  36. extensions: ['.js', '.json'],
  37. modules: [helpers.root('src'), helpers.root('node_modules')],
  38. },
  39. plugins: [
  40. new webpack.DllPlugin({
  41. path: helpers.root('public/dll/manifest.json'),
  42. name: 'growi_dlls',
  43. }),
  44. ],
  45. };