Dynamic content script injection #446
-
I am very happy with this plugin but one issue I have not yet solved is dynamic content script injection. The scenario is the following: I have a content script that should only be injected upon user command. I go about this by injecting it using |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
For anyone else who lands on this issue- I found the solution here - would be very helpful to have this directly in the docs! |
Beta Was this translation helpful? Give feedback.
-
Hi @nicoandmee, how did you manage the compilation error?
I have tried several conventions without success... Edit: It seems to be working, I wonder if there is an option to, instead of importing one-by-one, loop over an array and dynamically import those files. |
Beta Was this translation helpful? Give feedback.
For anyone else who lands on this issue- I found the solution here - would be very helpful to have this directly in the docs!