Module: RailsAssetslessContainer
- Defined in:
- lib/rails_assetsless_container.rb,
lib/rails_assetsless_container/config.rb,
lib/rails_assetsless_container/railtie.rb,
lib/rails_assetsless_container/version.rb,
lib/rails_assetsless_container/strategy/log.rb,
lib/rails_assetsless_container/sprockets_ext.rb,
lib/rails_assetsless_container/strategy/base.rb,
lib/rails_assetsless_container/webpacker_ext.rb,
lib/rails_assetsless_container/strategy/asset_server.rb
Defined Under Namespace
Modules: SprocketsExt, Strategy, WebpackerExt
Classes: Config, Error, Railtie
Constant Summary
collapse
- VERSION =
"0.1.0"
Class Method Summary
collapse
Class Method Details
.after_sprockets(path) ⇒ Object
16
17
18
|
# File 'lib/rails_assetsless_container.rb', line 16
def after_sprockets(path)
strategy.after_sprockets(path) if enabled?
end
|
.after_webpacker(path) ⇒ Object
20
21
22
|
# File 'lib/rails_assetsless_container.rb', line 20
def after_webpacker(path)
strategy.after_webpacker(path) if enabled?
end
|
.config ⇒ Object
5
6
7
|
# File 'lib/rails_assetsless_container/config.rb', line 5
def config
@config ||= Config.new
end
|
9
10
11
|
# File 'lib/rails_assetsless_container/config.rb', line 9
def configure
yield config
end
|
.download_manifests ⇒ Object
24
25
26
27
28
29
|
# File 'lib/rails_assetsless_container.rb', line 24
def download_manifests
return unless enabled?
download_sprockets_manifest
download_webpacker_manifest if defined?(Webpacker)
end
|