Replace the HTML

Replacing the HTML Templates

To replace the default HTML templates, you can create a .html file with the same naming convention as the component file. For example, if you have a popup.tsx and would like to override the HTML, create a popup.html file:

<!DOCTYPE html>
    <meta charset="utf-8" />

If you have a popup/index.tsx file, create a popup/index.html file with content similar to the above.


You do not need to include the root element or the script tag. The Plasmo Framework will handle that for you.