vue-cli-plugin-chrome-ext icon indicating copy to clipboard operation
vue-cli-plugin-chrome-ext copied to clipboard

How can I implement a background.js script?

Open notflip opened this issue 5 years ago • 4 comments

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

Thanks, great plugin so far

notflip avatar Jun 28 '19 07:06 notflip

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.

superoo7 avatar Jul 02 '19 03:07 superoo7

No worries at all! Thanks for having made this.

notflip avatar Jul 02 '19 13:07 notflip

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

superoo7 avatar Jul 03 '19 02:07 superoo7

@superoo7 what about Content Scripts?

nonlinearthink avatar Jun 23 '20 15:06 nonlinearthink