PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.29k stars 356 forks source link

[RFC] Special Folders #1091

Open HereOrCode opened 3 days ago

HereOrCode commented 3 days ago

How do you envision this feature/change to look/work like?

During development, there are times when a standalone script or page is necessary to enhance an extension's functionality.

This could involve using an iframe in a sandboxed page or implementing a script as a content script via chrome.scripting.executeScript.

Since these features can be essential to your extension's development, they should receive the same level of support as other files managed by the manifest, including compatibility with TypeScript, pre-processors, and all other capabilities offered by the Extension framework.

What is the purpose of this change/feature? Why?

Special folders are folders that allows you to work with files outside the scope of the manifest file.

Folder Name Description
pages/ Enables the inclusion of additional HTML pages in the compilation process, treating their resources like any other HTML file specified in the manifest.
scripts/ Facilitates the inclusion of script files in the compilation process that are not listed in the manifest or HTML pages.

(OPTIONAL) Example implementations

No response

(OPTIONAL) Contribution

Verify canary release

Code of Conduct