extension.js icon indicating copy to clipboard operation
extension.js copied to clipboard

Support configuration file for custom plugins

Open 0xBigBoss opened this issue 1 year ago • 2 comments

First off, thank you so much for the amazing repo. It's helped me so much already today bootstrap my idea quickly. However, I am wondering how I could potentially include some custom webpack plugins so I could easily use a react native (web) setup.

I'd love to use my favorite UI library, https://tamagui.dev, but I don't see an easy way to do that currently unless I do something like this, https://github.com/extension-js/extension.js/commit/516381a3b183c2596c49385ce8a40c6306f24674.

Wondering if something like this is coming soon or if there's something I could potentially help with adding this eject feature.

I do plan to support some sort of configuration file. What would be the reason for the eject? Do you miss some plugin or something? Curious to know the use case

https://github.com/extension-js/extension.js/issues/126#issuecomment-2218956669

0xBigBoss avatar Aug 03 '24 19:08 0xBigBoss

hi @0xBigBoss! thanks for the kind words and for the feedback.

I'm not against an eject option but that would be much harder to do than creating a config file that exposes the webpack config. After #137 this is definitely a priority.

cezaraugusto avatar Aug 06 '24 18:08 cezaraugusto

Hi @cezaraugusto I think what you are suggesting for the config file is great and would work perfectly. I think I would rather not have to eject from this awesome setup you have here.

0xBigBoss avatar Aug 09 '24 03:08 0xBigBoss

hey @0xBigBoss the config file is a thing now! use extension.config.js and add the webpack plugins you want. see the "crypto" template for reference:

npx extension@latest create my-extension --template=new-crypto

let me know how it goes!

cezaraugusto avatar Sep 15 '24 13:09 cezaraugusto

closing as completed. please open a new one if I missed something

cezaraugusto avatar Sep 18 '24 13:09 cezaraugusto