Module: Webpacker::Compiler
Instance Method Summary collapse
Instance Method Details
#compile ⇒ Object
14 15 16 17 18 19 |
# File 'lib/webpacker/compiler.rb', line 14 def compile return unless compile? compile_task.invoke compile_task.reenable end |
#compile? ⇒ Boolean
21 22 23 24 25 26 |
# File 'lib/webpacker/compiler.rb', line 21 def compile? return true unless File.exist?() return true unless File.exist?(Webpacker::Configuration.output_path) File.read() != end |
#default_watched_paths ⇒ Object
28 29 30 |
# File 'lib/webpacker/compiler.rb', line 28 def default_watched_paths ["#{Webpacker::Configuration.source}/**/*", "yarn.lock", "package.json", "config/webpack/**/*"].freeze end |