Class: Webpacker::CompilerStrategy
- Inherits:
-
Object
- Object
- Webpacker::CompilerStrategy
- Defined in:
- lib/webpacker/compiler_strategy.rb
Class Method Summary collapse
Class Method Details
.from_config ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/webpacker/compiler_strategy.rb', line 6 def self.from_config strategy_from_config = Webpacker.config.compiler_strategy case strategy_from_config when "mtime" Webpacker::MtimeStrategy.new when "digest" Webpacker::DigestStrategy.new else raise "Unknown strategy '#{strategy_from_config}'. " \ "Available options are 'mtime' and 'digest'." end end |