Allow more control over adding page attachments

Created on 4 March 2025, about 2 months ago

Problem/Motivation

Existing wxt_library config allows some control over what pages it adds libraries too, but there is not full control.

Proposed resolution

Create wxt_library_add_page_attachments() which does the actual adding and have that be called by wxt_library_page_attachments(). That way, developers can call wxt_library_add_page_attachments() themselves for full control over what pages get the libraries.

Another more elaborate option would be use condition plugins (like blocks) instead of wxt_library's own "Themes Visibility" and "Activate on specific URLs".

Remaining tasks

Implement.

User interface changes

None.

API changes

Addition of wxt_library_add_page_attachments().

Data model changes

None.

Feature request
Status

Active

Version

11.1

Component

Code

Created by

🇨🇦Canada Liam Morland Ontario, CA 🇨🇦

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024