FIX: Add popper sourcemap
This commit is contained in:
parent
1eeca264eb
commit
e8bf304f05
|
@ -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}"
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue