mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-10-24 08:11:30 +08:00
fix(geo_map): fix leaflet asset copying
necessary, now that we moved leaflet to devDeps
This commit is contained in:
parent
0b82489ea0
commit
b8af8b4709
@ -260,8 +260,8 @@ export default class GeoMapTypeWidget extends TypeWidget {
|
||||
#buildIcon(bxIconClass: string, colorClass: string, title: string) {
|
||||
return this.L.divIcon({
|
||||
html: `\
|
||||
<img class="icon" src="${asset_path}/node_modules/leaflet/dist/images/marker-icon.png" />
|
||||
<img class="icon-shadow" src="${asset_path}/node_modules/leaflet/dist/images/marker-shadow.png" />
|
||||
<img class="icon" src="${asset_path}/app-dist/leaflet/images/marker-icon.png" />
|
||||
<img class="icon-shadow" src="${asset_path}/app-dist/leaflet/images/marker-shadow.png" />
|
||||
<span class="bx ${bxIconClass} ${colorClass}"></span>
|
||||
<span class="title-label">${title}</span>`,
|
||||
iconSize: [25, 41],
|
||||
|
||||
@ -34,6 +34,11 @@ const config: Configuration = {
|
||||
context: "node_modules/@excalidraw/excalidraw/dist/prod/fonts/",
|
||||
from: "**/*",
|
||||
to: "excalidraw/fonts/"
|
||||
},
|
||||
{
|
||||
context: "node_modules/leaflet/dist/images/",
|
||||
from: "**/*",
|
||||
to: "leaflet/images/"
|
||||
}
|
||||
]
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user