Sha256: ebc6f512faaacbbf9fea01da674f28fc475ef4f44d1d1ceb22745c4a36e00be5

Contents?: true

Size: 493 Bytes

Versions: 2

Compression:

Stored size: 493 Bytes

Contents

module Vega
  class Engine < ::Rails::Engine
    # for assets

    # for importmap
    if defined?(Importmap)
      initializer "vega.importmap", after: "importmap" do |app|
        app.importmap.draw(Engine.root.join("config/importmap.rb"))
        app.config.assets.precompile << "vega-embed.js"
        app.config.assets.precompile << "vega-interpreter.js"
        app.config.assets.precompile << "vega-lite.js"
        app.config.assets.precompile << "vega.js"
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
vega-0.2.1 lib/vega/engine.rb
vega-0.2.0 lib/vega/engine.rb