serving vue as assert

This commit is contained in:
Torsten 2022-12-18 11:59:40 +02:00
parent 9841ee03e8
commit 5e2c10cd93
4 changed files with 11925 additions and 1 deletions

File diff suppressed because it is too large Load Diff

11
app/assets/javascript/merged/vue.min.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -3,6 +3,10 @@
All Images All Images
= render "layouts/merged_header" = render "layouts/merged_header"
- if Rails.env.development?
= javascript_include_tag "merged/vue.js"
-else
= javascript_include_tag "merged/vue.min.js"
.images .images
.flex.justify-center .flex.justify-center

View File

@ -9,7 +9,7 @@ module Merged
class Engine < ::Rails::Engine class Engine < ::Rails::Engine
isolate_namespace Merged isolate_namespace Merged
initializer "merged.assets.precompile" do |app| initializer "merged.assets.precompile" do |app|
app.config.assets.precompile += %w( merged/merged.css merged/merged_logo) app.config.assets.precompile += %w( merged/merged.css merged/vue.js merged/vue.min.js merged/merged_logo)
add_image_assets(app.config , "section_preview") add_image_assets(app.config , "section_preview")
add_image_assets(app.config , "card_preview") add_image_assets(app.config , "card_preview")
end end