a42863f514
The Rails guides were migrated from Turbolinks to Turbo in 0f6575a5344246d385d1a724e8b0bb3544ab6478 The PR discussion explains that the file was grabbed from unpkg, and a decision was made to not run it through a minifier. This commit adds a rake task to automate the process of grabbing the turbo js file using Importmap::Packager, which is what importmap-rails uses for `bin/importmap pin --download`. The extra Importmap module definition is necessary because the Importmap::Packager file uses the shorthand module syntax, meaning that an error is thrown if the Importmap module is not previously defined. `require "importmap-rails"` would normally define this module, but one of its dependent requires will not load outside of a Rails application. The turbo.css file was removed as it appears to be leftover from Turbolinks and Turbo does not provide any css files in its dist. |
||
---|---|---|
.. | ||
dark.css | ||
epub.css | ||
highlight.css | ||
main.css | ||
print.css | ||
reset.css | ||
style.css |