Sha256: 540bab254ef372398c93018dddd3680ce3840a9281bb8ecb74b5263825af2448
Contents?: true
Size: 915 Bytes
Versions: 3
Compression:
Stored size: 915 Bytes
Contents
Pakyow::Config.register(:assets) { |config| # registered asset stores config.opt :stores, lambda { @stores ||= { default: File.join(Pakyow::Config.app.root, 'app', 'assets') } } # whether or not pakyow should host assets config.opt :compile_on_request # whether pakyow should compile assets on startup config.opt :compile_on_startup # where assets should be compiled to config.opt :compiled_asset_path # whether or not to cache the assets config.opt :cache # whether or not to minify the assets config.opt :minify }.env(:development) { |opts| opts.cache = false opts.compile_on_request = true opts.compile_on_startup = false opts.compiled_asset_path = '.assets' opts.minify = false }.env(:production) { |opts| opts.cache = true opts.compile_on_request = false opts.compile_on_startup = true opts.compiled_asset_path = 'public' opts.minify = true }
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pakyow-assets-0.1.2 | lib/config.rb |
pakyow-assets-0.1.1 | lib/config.rb |
pakyow-assets-0.1.0 | lib/config.rb |