class Webpacker::Commands
Public Class Methods
new(webpacker)
click to toggle source
# File lib/webpacker-for-component/commands.rb, line 4 def initialize(webpacker) @webpacker = webpacker end
Public Instance Methods
bootstrap()
click to toggle source
# File lib/webpacker-for-component/commands.rb, line 13 def bootstrap config.refresh manifest.refresh end
clobber()
click to toggle source
# File lib/webpacker-for-component/commands.rb, line 8 def clobber config.public_output_path.rmtree if config.public_output_path.exist? config.cache_path.rmtree if config.cache_path.exist? end
compile()
click to toggle source
# File lib/webpacker-for-component/commands.rb, line 18 def compile compiler.compile.tap do |success| manifest.refresh if success end end