Skip to content

Conversation

@Tensai75
Copy link
Contributor

@Tensai75 Tensai75 commented Apr 12, 2025

Overview

This PR adds the ability for the user to use ignore attributes, either vite-ignore or wxt-ignore in html elements to make wxt ignore those elements and not process the src or href attributes.
If wxt-ignore is used as attribute, the attribute is removed. The vite-ignore attribute does not need to be removed as it is removed later by Vite.

Manual Testing

Add the attribute vite-ignore or wxt-ignore to a link element in an entrypoint html file. The href attribute should not be processed in the resulting html file and the vite-ignore or wxt-ignore should be removed.

Related Issue

N/A.
Manually ignoring elements may be beneficial in some specific edge cases like in the problem which was discussed here: #1548

@netlify
Copy link

netlify bot commented Apr 12, 2025

Deploy Preview for creative-fairy-df92c4 ready!

Name Link
🔨 Latest commit 9f5a9ab
🔍 Latest deploy log https://app.netlify.com/sites/creative-fairy-df92c4/deploys/680128fe52aa610008d0fb91
😎 Deploy Preview https://deploy-preview-1573--creative-fairy-df92c4.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@Tensai75
Copy link
Contributor Author

Will add new separate PRs for the wxt-ignore attribute and the {{packageVersion}} as template variable.

@Tensai75 Tensai75 closed this Apr 22, 2025
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