Class: Packr::Rails::Railtie
- Inherits:
-
Rails::Railtie
- Object
- Rails::Railtie
- Packr::Rails::Railtie
- Defined in:
- lib/packr/rails/railtie.rb
Defined Under Namespace
Modules: PackrContext
Constant Summary collapse
- DEFAULTS =
References:
- http://edgeguides.rubyonrails.org/asset_pipeline.html - https://github.com/rails/sass-rails/blob/3-1-stable/lib/sass/rails/railtie.rb
{ :template_extension => '.packr', # File-extension for the template files that should be packed automatically. :packed_extension => '.packed.js', # File-extension for the packed javascript file. :pack_options => { :shrink_vars => true, # Compress local variable names. :private => true, # Obfuscate 'private' identifiers, i.e. names beginning with a single underscore. :base62 => false, # Encode the program using base 62. :protect => [] # Variable names to protect from compression. Example: ['_this', 'that'] } }