Sha256: 1496c4f77682c08627a428ff4034e9689b805c1ac4f431022b154ccd9d5ab7b2

Contents?: true

Size: 514 Bytes

Versions: 62

Compression:

Stored size: 514 Bytes

Contents

app = Rails.application

# Hide the serviceworker-rails generators since they don't work with our
# namespacing and we can override the files using the `workarea:override`
# generator
app.config.generators.hide_namespace('serviceworker')

# Configure serviceworker-rails
app.config.serviceworker.routes.draw do
  match '/pwa_cache.js' => 'workarea/storefront/serviceworkers/pwa_cache.js'
end

# Precompile the required assets
app.config.assets.precompile += %w(
  workarea/storefront/serviceworkers/pwa_cache.js
)

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-core-3.4.13 config/initializers/21_serviceworkers.rb
workarea-core-3.4.12 config/initializers/21_serviceworkers.rb