extension.js
extension.js copied to clipboard
Support for template composition
Hey, I found your project to be useful. I was wondering if there is a way to say template="tailwind" && template="content"
Not possible, but that's a great idea!
Steps to get it done:
- 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
-
in the
--templateflag argument, replace any,input value with-, and sort alphabetically. This will make--template=tailwind,contentintocontent-tailwind. If step 1) is done, it should call the template just fine. -
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 :)
@OSpoon is this something you would be interested to implement?
@OSpoon is this something you would be interested to implement?
I am interested,I will try to implement this feature in my free time.
@hhimanshu @OSpoon after a very deep thought I decided not to move forward with this one as it's very unlikely that we'll be able to provide good support for this feature given other priorities. Closing as not actionable, but really appreciate the efforts to make this possible