FIX: Add popper sourcemap

This commit is contained in:
Robin Ward 2020-07-15 15:29:12 -04:00
parent 1eeca264eb
commit e8bf304f05
2 changed files with 12 additions and 2 deletions

View File

@ -1,7 +1,11 @@
# frozen_string_literal: true
def public_root
"#{Rails.root}/public"
end
def public_js
"#{Rails.root}/public/javascripts"
"#{public_root}/javascripts"
end
def vendor_js
@ -153,6 +157,9 @@ task 'javascript:update' do
public: true
}, {
source: '@popperjs/core/dist/umd/popper.js'
}, {
source: '@popperjs/core/dist/umd/popper.js.map',
public_root: true
}
]
@ -189,7 +196,9 @@ task 'javascript:update' do
system("rm -rf node_modules/ace-builds/src-min-noconflict/snippets")
end
if f[:public]
if f[:public_root]
dest = "#{public_root}/#{filename}"
elsif f[:public]
dest = "#{public_js}/#{filename}"
else
dest = "#{vendor_js}/#{filename}"

1
public/popper.js.map Normal file

File diff suppressed because one or more lines are too long