j-mcnally / ember-cli-chrome

A small and growing toolkit to build chrome extensions with EmberJS
62 stars 12 forks source link

support for "content_scripts" #7

Open narendrashetty opened 9 years ago

narendrashetty commented 9 years ago

Hi, Thanks for the toolkit. I am using it to build my extension, I have hit a road block while adding content_scripts can anyone help me out with it?

devinrhode2 commented 8 years ago

You may need to place your extensions original manifest.json into the public folder, so this addon uses that instead of generating it's own manifest.json

lcpriest commented 8 years ago

@devinrhode2 do you see any particular caveats of placing the entire ember app in content scripts? I think it gives you more control on page placement etc.

devinrhode2 commented 8 years ago

Well first, updatability. Second overall architecture. Do you have any mobile web access for the service? I would try to stick to the standard way of doing things as much as possible. I would recommend putting the ember app inside an iframe, that way to live reload worlflow given to you by ember cli still works.

devinrhode2 commented 8 years ago

Then once you have the ember app inside an iframe, use a content script to embed the iframe (this is how tweet/like buttons work)