Closed lisunshiny closed 7 years ago
Oh ok -- I figured this out. For other people trying to use the Ace editor and this gem, I added these regexes to the logical path patterns.
config.requirejs.logical_path_patterns += [/^ace\/[\w\/]*\w.+\.css$/, /\.snippets$/]
@lisunshiny Glad this feature worked out for you!
Hi,
I am currently trying to add the Ace editor library by adding this (https://github.com/ajaxorg/ace/tree/master/lib/ace) folder to
vendor/assets/javascripts/
in my Rails app and then callingdefine(["ace/ace"], function(ace) {"blah"})
on to my project using the requirejs-rails gem. This is also in-line with the implementation instructions here: https://ace.c9.io/#nav=embedding.Locally, this works fine. However, when I precompile assets for production, specifically on
bundle exec rake requirejs:precompile:run_rjs
, I'm getting the following error:Two things I noticed are:
tmp/requirejs/dst/ace
file, the directory mirrors mine invendor/assets/javascripts/ace
but there are no.css
files, just.js
ones.require
statements that pull in css files use the!text
header, such as here: https://github.com/ajaxorg/ace/blob/master/lib/ace/virtual_renderer.js#L47!text
files.Really at a loss here for why these files aren't getting included -- any help would be greatly appreciated!