13

I try to store all stuff of the ace editor in a single file, e.g. themes, modes and extensions. Therefore I downloaded the ace-master-build package from GitHub and concatenated the files. That did not work (many errors in the console). So I cloned the whole repository from GitHub and tried to use the Makefile.dryice.js to put it in a single file automatically:

$ ./Makefile.dryice.js --s --m --nc --target ../test 

That did what I want, but after I integrated it in my website it logs: Ace is not defined.

So what can I do? Is it even possible to use ACE in a single file?

Cheers, Marco

2
  • any insights since asking this question? Commented Sep 29, 2016 at 20:54
  • @tomer34 I eventually managed to get ace in a single file, but don't know exactly how I did it. It is used in my "little" file manager: github.com/misterunknown/ifm If you have the same issues I maybe can help you when you provide the error message you get. Commented Sep 30, 2016 at 11:11

1 Answer 1

0

I don't get what you want but you can load ace from a single script tag: <script src="https://cdnjs.cloudflare.com/ajax/libs/ace/1.4.12/ace.js" integrity="sha512-GZ1RIgZaSc8rnco/8CXfRdCpDxRCphenIiZ2ztLy3XQfCbQUSCuk8IudvNHxkRA3oUg6q0qejgN/qqyG1duv5Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> and load everything else using Require . I done a similar project in which I had to compress the whole file and this helped.

Cheers, Adhvaith.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.