How To Include A Script Into My Build Folder Separately?
I am working on a Chrome extension that requires a background script (background.js). Currently when I npm run build, the project is built as normal in the build folder. I then cop
Solution 1:
You could add the script to the public
folder and add this line to your index.html
file:
<scriptsrc="%PUBLIC_URL%/background.js"></script>
Post a Comment for "How To Include A Script Into My Build Folder Separately?"