Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
2947 Visualizzazioni

I read from cybrosys that we can either use the cdnjs link as an src attribute in the script tag or pull chart.js from git and add it to manifest. I registered cdnjs link to templates and it appears inside head tag, however it doesn't update my charts. Maybe that is because of another link below which calls built-in old chartjs. What about the second option, I don't know how to add chart.js to manifest. (as external dependency? if yes, how?)

Avatar
Abbandona
Risposta migliore

You can add the latest cdn link for the chart.js library in the assets path, So it will update the library as it updates.


Here is an example showing adding the cdnlink in manifest:


ie:


'assets': {

        'web.assets_backend': [ "https://cdn.jsdelivr.net/npm/chart.js"] }

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
0
set 22
2467
4
mag 21
29038
2
nov 23
9024
0
lug 20
3128
1
giu 23
2531