mirror of
https://github.com/discourse/discourse.git
synced 2024-11-22 11:44:49 +08:00
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}"
|
||||
|
|
1
public/popper.js.map
Normal file
1
public/popper.js.map
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user