You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The below entry in Dioxus.toml causes everything from under <PROJECT_ROOT>/public to be copied under <BUILD_ROOT>/assets instead of <BUILD_ROOT>/:
[application]
asset_dir = "public"
The official PWA example is now broken. It's index.html includes links to /sw.js, manifest.json, but since both of them are under <PROJECT_ROOT>/public, they become available under <PROJECT_ROOT>/assets. Upon
Steps To Reproduce
Steps to reproduce the behavior:
open the Network tab in developer tools of the browser
Problem
The below entry in
Dioxus.toml
causes everything from under<PROJECT_ROOT>/public
to be copied under<BUILD_ROOT>/assets
instead of<BUILD_ROOT>/
:The official PWA example is now broken. It's
index.html
includes links to/sw.js
,manifest.json
, but since both of them are under<PROJECT_ROOT>/public
, they become available under<PROJECT_ROOT>/assets
. UponSteps To Reproduce
Steps to reproduce the behavior:
dx serve
,sw.js
,favicon.ico
,manifes.json
Expected behavior
Static assets should be deployed to
<BUILD_ROOT>/
.Preferred fix:
asset_dir
to<BUILD_ROOT>/
Optional step:
Dioxus.toml
, e.g.asset_dir_dest
which points to<BUILD_ROOT>/
by default, but can be overriddenScreenshots
Environment:
web
Questionnaire
The text was updated successfully, but these errors were encountered: