extension-js / extension.js

🧩 Plug-and-play, zero-config, cross-browser extension development tool.
https://extension.js.org
MIT License
3.53k stars 84 forks source link

Support for template composition #47

Open hhimanshu opened 3 months ago

hhimanshu commented 3 months ago

Hey, I found your project to be useful. I was wondering if there is a way to say template="tailwind" && template="content"

cezaraugusto commented 3 months ago

Not possible, but that's a great idea!

Steps to get it done:

1) Have a new "content-tailwind" template within the templates folder. There is a react-typescript template at the moment that can be used as a reference, as it uses a content_script file with Tailwind.css.

The react-typescript template

2) in the --template flag argument, replace any , input value with -, and sort alphabetically. This will make --template=tailwind,content into content-tailwind. If step 1) is done, it should call the template just fine.

3) Update the Templates doc to include the new template

I'm currently focused on adding more browser and framework support, but would be great to see this in the future. Will set this as open for grabs :)

cezaraugusto commented 1 month ago

@OSpoon is this something you would be interested to implement?

OSpoon commented 1 month ago

@OSpoon is this something you would be interested to implement?

I am interested,I will try to implement this feature in my free time.