We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dcac685 commit 3b0abceCopy full SHA for 3b0abce
1 file changed
tasks/updater/js.rb
@@ -5,7 +5,10 @@ def update_javascript_assets
5
save_to = @save_to[:js]
6
contents = {}
7
read_files('js/dist', bootstrap_js_files).each do |name, file|
8
- contents[name] = file
+ contents[name] = file.
9
+ # Remove the source mapping URL comment as this gem does not bundle source maps.
10
+ sub!(%r(^//# sourceMappingURL=#{name}.map\n\z), '') or
11
+ fail "Cannot find source mapping URL to remove in #{name}. Last line: #{file.lines.last.inspect}"
12
save_file("#{save_to}/#{name}", file)
13
end
14
log_processed "#{bootstrap_js_files * ' '}"
0 commit comments