-
Notifications
You must be signed in to change notification settings - Fork 146
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
Support of persistent cache #380
Comments
This seems similar to https://github.com/jsdf/browserify-incremental and we've been needing something like this at work. We currently spend about a minute and a half creating our bundles in some instances. I'm curious if I can get @ovcharik's snippit to work in our codebase. |
The code in the snippit seems to leave me with a cache file that looks like this:
I'm sure there is some small bug, I'll keep looking into it. |
This is because |
It seems like the cache data for each file is a package.json contents, not the actual file contents: For example:
Also, to use this you also need to specify cache and packageCache as browserifyOptions in grunt-browserify. @ovcharik: Do you think this functionality makes more sense as a browserify plugin than as a part of grunt-browserify? |
Hi!
I just wanted to share idea. Maybe it will be useful: https://gist.github.com/ovcharik/4b230e103b584c864ddb038ec6c2b7ea
Simple benchmark:

Lager project:

The text was updated successfully, but these errors were encountered: