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

Replace file #10

Open
Akryum opened this issue Sep 29, 2016 · 3 comments
Open

Replace file #10

Akryum opened this issue Sep 29, 2016 · 3 comments

Comments

@Akryum
Copy link

Akryum commented Sep 29, 2016

I don't see a way to replace a file with new content (for example, to hot reload modules). Is it currently possible?
Maybe we could have an option like forceReplace?

@benjamn
Copy link
Owner

benjamn commented Sep 29, 2016

Here's the line where we ignore new contents for files that have already been installed.

I'm definitely interested in this idea, and my use case is the same as yours (hot module replacement). I wonder what minimal hooks we could support to enable hot module replacement, so that we don't have to implement that logic in this package. At minimum, I think we should reuse the module object from the previous version of the module.

@Akryum
Copy link
Author

Akryum commented Sep 29, 2016

What I'm trying to do is replace an installed file with meteorInstall. Currently, my workaround is to change the filename with a timestamp, but this leads to unexpected side effects.

@afrokick
Copy link

@benjamn I known that it is about 3 years old topic. But maybe you have any ideas how to do it properly? Any idea about hooks?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants