Manifest v3 : multiple files for background

74 views
Skip to first unread message

Simon Bassu

unread,
Jan 15, 2021, 10:16:27 AMJan 15
to Chromium Extensions
Hi,

I'm trying to convert my extension to manifest v3.

In my current extension, I have 3 scripts files for the background 
 "background": {
   "scripts": [
      "constantes.js", 
      "utils.js",
      "background.js"
   ]
 }

How can I do same with manifest v3? Because I want to  reuse constantes.js and utils.js. Note, I prefer to avoid concatenating files.

Thank you.

Simon B.

Jon Howard

unread,
Jan 15, 2021, 10:25:22 AMJan 15
to Chromium Extensions, Simeon Bassu
I'm doing a similar thing - I have my background code split up across several different modules and I use webpack to combine them all in to a single 'background.js' file in my output folder.

e9wmrm5drjcs6ec7lwxfn3latya

unread,
Jan 15, 2021, 11:05:22 PMJan 15
to Chromium Extensions, j...@easyfundraising.org.uk, Simeon Bassu
Reply all
Reply to author
Forward
0 new messages