Merge several editor mode files in to one big file


#1

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.


#2

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


#3

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


#4

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


#5

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