DEV Community

Discussion on: Building a web extension with Vue at speed of light

Collapse
 
dimazz profile image
dimazz

Thank you for this tutorial! By some reason I have no content script, if I am adding it manually it doesn't appear in dist/ folder after build

Collapse
 
dimazz profile image
dimazz

Solved it in following way:

In webpack.config.js
entry: {
'content': './content.js',
'background': './background.js',
'popup/popup': './popup/popup.js',
'options/options': './options/options.js',
},

After build, content script is cut from manifest.json by some reason.. have to add it manually

Collapse
 
flarra profile image
Fabián Larrañaga

Thanks for the feedback and for raising an issue/solving it. :)

As you correctly shared, you need to pass the entry files exactly how you did.

I'm sorry for not making it explicit in the tutorial. I wrote the code but not the guide for it ( github.com/streaver/vue-web-extens... )

Nice catch and sorry for the inconvenience!

Note: by default github.com/Kocal/vue-web-extension adds the background, popup & options but not the content.