guocaoyi / create-chrome-ext

🍺 Scaffolding your Chrome extension! Boilerplates: react \ vue \ svelte \ solid \ preact \ alpine \ lit \ stencil \ inferno \ vanilla
MIT License
1.42k stars 106 forks source link

Remove web accessible resources #83

Open qleml opened 1 month ago

qleml commented 1 month ago

Hey everyone :)

Why does the build process create a manifest with web_accessible_resources? I don't want to make any files accessible, and my extension should work fine without it.

However I haven't found a way to make the content script run otherwise and I get the error: Uncaught SyntaxError: Cannot use import statement outside a module (at chunk-0d13d13f.js:1:1) chunk-1b138347.js:1.

Any help greatly appreciated

Thanks!!