Merge several editor mode files in to one big file

Is it possible to merge more than 2 mode file in to one js file?

<script src="codemirror/mode/css/css.js"></script>
<script src="codemirror/mode/javascript/javascript.js"></script>
<script src="codemirror/mode/sass/sass.js"></script>

In to one file like this

<script src="codemirror/mode.js"></script>

I have too many HTTP asset request in one page witch cause slow page loading and I want to prevent that bey merging them into one file.

Yes, you can concatenate them, and they’ll still work.

1 Like

Yea it did work. I was just worry about messing up the require paths require("../../lib/codemirror")
Thanks @marijn

If you’re not using a module loader, those aren’t executed.

I have tried more that one editors out there.But Code mirror is very stable editor. it is the best.