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.5.27 config/initializers/21_serviceworkers.rb
workarea-core-3.5.26 config/initializers/21_serviceworkers.rb
workarea-core-3.4.45 config/initializers/21_serviceworkers.rb
workarea-core-3.5.25 config/initializers/21_serviceworkers.rb
workarea-core-3.5.23 config/initializers/21_serviceworkers.rb
workarea-core-3.4.44 config/initializers/21_serviceworkers.rb
workarea-core-3.5.22 config/initializers/21_serviceworkers.rb
workarea-core-3.4.43 config/initializers/21_serviceworkers.rb
workarea-core-3.5.21 config/initializers/21_serviceworkers.rb
workarea-core-3.4.42 config/initializers/21_serviceworkers.rb
workarea-core-3.5.20 config/initializers/21_serviceworkers.rb
workarea-core-3.4.41 config/initializers/21_serviceworkers.rb
workarea-core-3.5.19 config/initializers/21_serviceworkers.rb
workarea-core-3.4.40 config/initializers/21_serviceworkers.rb
workarea-core-3.5.18 config/initializers/21_serviceworkers.rb
workarea-core-3.4.39 config/initializers/21_serviceworkers.rb
workarea-core-3.5.17 config/initializers/21_serviceworkers.rb
workarea-core-3.4.38 config/initializers/21_serviceworkers.rb
workarea-core-3.5.16 config/initializers/21_serviceworkers.rb
workarea-core-3.4.37 config/initializers/21_serviceworkers.rb