Thanks for this boilerplate, it has helped me get my very first chrome extension off the ground. One snag I ran into is -- if using content scripts, e.g. loading js/html/css within e.g. Google.com -- the css urls will attempt to fetch to e.g. Google.com/static/media/my_awesome.png. I've added a rule to config-overrides.js that sets the publicPath to chrome-extension://__MSG_@@extension_id__/ which will make it so the content resource is requested from the chrome extension and not the content site. I'd be interested in learning a better way of doing this, but this seems to work so thought i'd share.
My issue actually pertains to this boilerplate which I confused with yours. My bad. Seems like content scripts aren't supported yet with your boilerplate, but it is a great starting point.
Thanks for this boilerplate, it has helped me get my very first chrome extension off the ground. One snag I ran into is -- if using content scripts, e.g. loading js/html/css within e.g. Google.com -- the css urls will attempt to fetch to e.g.
Google.com/static/media/my_awesome.png
. I've added a rule toconfig-overrides.js
that sets thepublicPath
tochrome-extension://__MSG_@@extension_id__/
which will make it so the content resource is requested from the chrome extension and not the content site. I'd be interested in learning a better way of doing this, but this seems to work so thought i'd share.