Sha256: 5271bf7b9e0b63738ee1885a0ab2e1f11984da411fa562ef55b34d84fe90a6b8
Contents?: true
Size: 580 Bytes
Versions: 3
Compression:
Stored size: 580 Bytes
Contents
module VueCli module Rails module Helper def vue_entry(name) @config ||= VueCli::Rails::Configuration.instance entry = (@config.manifest_data['entrypoints'] || {})[name] return raise(VueCli::Rails::Error, "Not found vue entry point: #{name}") if entry.blank? assets = [] (entry['css'] || []).each do |css| assets << stylesheet_link_tag(css) end (entry['js'] || []).each do |js| assets << javascript_include_tag(js) end assets.join('').html_safe end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
vue_cli-rails-0.2.0 | lib/vue_cli/rails/helper.rb |
vue_cli-rails-0.1.6 | lib/vue_cli/rails/helper.rb |
vue_cli-rails-0.1.4 | lib/vue_cli/rails/helper.rb |