webpack.config.js 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. "use strict";
  5. module.exports = [{
  6. bail: true,
  7. entry: [
  8. "./sourceeditor/codemirror/addon/dialog/dialog.js",
  9. "./sourceeditor/codemirror/addon/search/searchcursor.js",
  10. "./sourceeditor/codemirror/addon/search/search.js",
  11. "./sourceeditor/codemirror/addon/edit/matchbrackets.js",
  12. "./sourceeditor/codemirror/addon/edit/closebrackets.js",
  13. "./sourceeditor/codemirror/addon/comment/comment.js",
  14. "./sourceeditor/codemirror/mode/javascript/javascript.js",
  15. "./sourceeditor/codemirror/mode/xml/xml.js",
  16. "./sourceeditor/codemirror/mode/css/css.js",
  17. "./sourceeditor/codemirror/mode/htmlmixed/htmlmixed.js",
  18. "./sourceeditor/codemirror/mode/clike/clike.js",
  19. "./sourceeditor/codemirror/mode/wasm/wasm.js",
  20. "./sourceeditor/codemirror/addon/selection/active-line.js",
  21. "./sourceeditor/codemirror/addon/edit/trailingspace.js",
  22. "./sourceeditor/codemirror/keymap/emacs.js",
  23. "./sourceeditor/codemirror/keymap/vim.js",
  24. "./sourceeditor/codemirror/keymap/sublime.js",
  25. "./sourceeditor/codemirror/addon/fold/foldcode.js",
  26. "./sourceeditor/codemirror/addon/fold/brace-fold.js",
  27. "./sourceeditor/codemirror/addon/fold/comment-fold.js",
  28. "./sourceeditor/codemirror/addon/fold/xml-fold.js",
  29. "./sourceeditor/codemirror/addon/fold/foldgutter.js",
  30. "./sourceeditor/codemirror/lib/codemirror.js",
  31. ],
  32. output: {
  33. filename: "./sourceeditor/codemirror/codemirror.bundle.js",
  34. libraryTarget: "var",
  35. library: "CodeMirror",
  36. },
  37. }];