Skip to content

Avoid inline css and js in dev#5315

Open
mohe2015 wants to merge 1 commit intoDioxusLabs:mainfrom
mohe2015:csp-avoid-inline-js-and-css
Open

Avoid inline css and js in dev#5315
mohe2015 wants to merge 1 commit intoDioxusLabs:mainfrom
mohe2015:csp-avoid-inline-js-and-css

Conversation

@mohe2015
Copy link
Contributor

No description provided.

@mohe2015 mohe2015 requested a review from a team as a code owner February 14, 2026 15:38
fn replace_template_placeholders(&self, html: &mut String, wasm_path: &str, js_path: &str) {
let base_path = self.base_path_or_default();
*html = html.replace("{base_path}", base_path);
*html = html.replace("{base_path}", &format!("/{base_path}"));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm aware that this is technically a breaking change but I think we should do it as it avoids bugs where these imports only work depending on from where you import. This way they either work all the time or not at all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant