Sha256: cd0e3c6b8cee15ff4b29d1244cb19e4c650c2c0821b002da6badb9bf2c8419c2

Contents?: true

Size: 419 Bytes

Versions: 6

Compression:

Stored size: 419 Bytes

Contents

<%= application_module %>::Application.boot :assets do |container|
  init do
    require "snowpack/web/assets"
  end

  start do
    use :settings

    assets = Snowpack::Web::Assets.new(
      root: container.root,
      precompiled: container.config.env == :production || container[:settings].assets_precompiled,
      server_url: container[:settings].assets_server_url,
    )

    register :assets, assets
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
snowpack-1.0.0.alpha7 lib/snowpack/generators/application/templates/system/boot/assets.rb.tt
snowpack-1.0.0.alpha6 lib/snowpack/generators/application/templates/system/boot/assets.rb.tt
snowpack-1.0.0.alpha5 lib/snowpack/generators/application/templates/system/boot/assets.rb.tt
snowpack-1.0.0.alpha4 lib/snowpack/generators/application/templates/system/boot/assets.rb.tt
snowpack-1.0.0.alpha3 lib/snowpack/generators/application/templates/system/boot/assets.rb.tt
snowpack-1.0.0.alpha2 lib/snowpack/generators/application/templates/system/boot/assets.rb.tt