superoo7 / vue-cli-plugin-chrome-ext

vue cli plugin that setup vue project for chrome extension
MIT License
94 stars 10 forks source link

How can I implement a background.js script? #4

Open notflip opened 5 years ago

notflip commented 5 years ago

How can I include a background script to be parsed? and moved to the dist folder?

Thanks, great plugin so far

superoo7 commented 5 years ago

Sorry for the late reply @notflip

What I did so far is to add in another file in src called background/index.ts in vue.config.js

// push background script
pagesObj.background = {
  entry: `src/background/index.ts`,
};

This project was done over the weekend, but I didn't have time to maintain on this.

notflip commented 5 years ago

No worries at all! Thanks for having made this.

superoo7 commented 5 years ago

I'll leave this issue open since it's not yet implemented

nonlinearthink commented 4 years ago

@superoo7 what about Content Scripts?