Skip to content
New issue

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

Code injection during dev mode #6684

Open
1 task
theoephraim opened this issue May 30, 2024 · 0 comments
Open
1 task

Code injection during dev mode #6684

theoephraim opened this issue May 30, 2024 · 0 comments
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality

Comments

@theoephraim
Copy link

Which problem is this feature request solving?

During the build process, I can inject code into the built functions files without any problem.

However during dev when the files are continuously being rebuilt, this is much harder. While we do have hooks for onPreDev and onDev, there are no other hooks related to actually building/bundling the files. I tried adding a file watcher so I could watch and update the files when they change, but it seems the plugin execution ends immediately and I can't start any long-running background process. (something that could be documented more clearly!)

Describe the solution you'd like

Some possible solutions

  • add hooks that fire as files are emitted by the netlify dev process
  • allow long-running processes from the build plugin (file watcher)

Pull request (optional)

  • I can submit a pull request.
@theoephraim theoephraim added the type: feature code contributing to the implementation of a feature and/or user facing functionality label May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: feature code contributing to the implementation of a feature and/or user facing functionality
Projects
None yet
Development

No branches or pull requests

1 participant