Closed XavDesbordes closed 3 months ago
Hi, Dioxus @0.5
when using dx new and setting the app, we can later add css and js script:
Excerpt of my Dioxus.toml:
# CSS style file style = ["/path/to/bootstrap.min.css"] # Javascript code file script = ["/path/to/bootstrap.bundle.min.js"]
When using bootstrap from my file system, chrome tells me Uncaught SyntaxError: Unexpected token '<'
Uncaught SyntaxError: Unexpected token '<'
but from the cdn (which is the same file I downloaded locally)
# CSS style file style = ["https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css"] # Javascript code file script = ["https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"]
No error message, and it runs as expected.
Anything I missed ?
Thanks,
Ok, We have to put the files in the asset or dist folders for it to work. Solved!
Hi, Dioxus @0.5
when using dx new and setting the app, we can later add css and js script:
Excerpt of my Dioxus.toml:
When using bootstrap from my file system, chrome tells me
Uncaught SyntaxError: Unexpected token '<'
but from the cdn (which is the same file I downloaded locally)
No error message, and it runs as expected.
Anything I missed ?
Thanks,