lib/sewing_kit/webpack/compiler.rb in sewing_kit-0.97.1 vs lib/sewing_kit/webpack/compiler.rb in sewing_kit-0.97.2
- old
+ new
@@ -53,10 +53,10 @@
def options
build_options = SewingKit.configuration.build_options
return [] unless build_options
- build_options.map { |key, value| ["--#{key}", value] }.flatten
+ build_options.map { |key, value| ["--#{key.to_s.tr('_', '-')}", value.to_s] }.flatten
end
def node_installed?
Kernel.system('node --version')
end