Use webpack to deliver newest ACE editor
With this commit, we change the delivery method for the ACE editor from manually copied files to using yarn and webpack. As a side-change, we also modify how the mode is selected through JavaScript instead of Ruby. Through webpack, the `modePath`, `themePath`, and `workerPath` are automatically determined and working as expected. Closes #250
This commit is contained in:

committed by
Sebastian Serth

parent
942dbd20db
commit
4f8d313da4
@ -78,3 +78,10 @@ window.I18n = i18n;
|
||||
// Routes
|
||||
import * as Routes from 'routes.js.erb';
|
||||
window.Routes = Routes;
|
||||
|
||||
// ACE editor
|
||||
import ace from 'ace-builds';
|
||||
import "ace-builds/esm-resolver";
|
||||
import "ace-builds/src-noconflict/ext-language_tools";
|
||||
import "ace-builds/src-noconflict/ext-modelist";
|
||||
window.ace = ace; // Publish ace in global namespace
|
||||
|
Reference in New Issue
Block a user