We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type:
Environment:
I'm going to open a PR:
Description:
If manifest.json is provided, if something in entries.contentScript is not in the manifest.json#content_scripts.js is is silently removed.
manifest.json
entries.contentScript
manifest.json#content_scripts.js
webpack-extension-reloader/src/utils/manifest.ts
Lines 41 to 49 in 4f9aa5e
I have a situation similar to here where I need to access the window object. This requires injecting a separate entry point like so:
window
export default function injectScript(filePath, tag) { var node = document.getElementsByTagName(tag)[0] var script = document.createElement('script') script.setAttribute('type', 'text/javascript') script.setAttribute('src', filePath) node.appendChild(script) } injectScript(chrome.extension.getURL('content-script.js'), 'body')
"content_scripts": [ { "matches": ["foo.com"], "css": ["style.global.css", "style.css"], "js": ["content-script-injector.js"], "all_frames": false } ],
This functionality prevents reloads when content-script.js is changed.
content-script.js
Maybe adding another option to IEntriesOption to specify a file that will be always injected with the middleware.
IEntriesOption
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Type:
Environment:
I'm going to open a PR:
Description:
If
manifest.json
is provided, if something inentries.contentScript
is not in themanifest.json#content_scripts.js
is is silently removed.webpack-extension-reloader/src/utils/manifest.ts
Lines 41 to 49 in 4f9aa5e
I have a situation similar to here where I need to access the
window
object. This requires injecting a separate entry point like so:This functionality prevents reloads when
content-script.js
is changed.Maybe adding another option to
IEntriesOption
to specify a file that will be always injected with the middleware.The text was updated successfully, but these errors were encountered: