Sha256: ffc36f0148169ac38b713001aa0cbc4b5d5fd51bdb17fef07dce5a6a46318c6e

Contents?: true

Size: 463 Bytes

Versions: 1

Compression:

Stored size: 463 Bytes

Contents

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

    # for importmap
    initializer "vega.importmap" do |app|
      if app.config.respond_to?(:assets) && defined?(Importmap) && defined?(Sprockets)
        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

1 entries across 1 versions & 1 rubygems

Version Path
vega-0.4.0 lib/vega/engine.rb