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

Cache files to avoid rebuilding the entire project #2

Closed
rtxa opened this issue Apr 3, 2022 · 1 comment · Fixed by #7
Closed

Cache files to avoid rebuilding the entire project #2

rtxa opened this issue Apr 3, 2022 · 1 comment · Fixed by #7

Comments

@rtxa
Copy link

rtxa commented Apr 3, 2022

Sometimes when your project has a lot of resources (like models, sounds, maps), the building process will get a slowdown.
It will be useful to cache the files for the next amxxpack build command call to avoid wasting any precious time and save it only for the compiling part.

The command amxxpack build --watch help with this issue but the caching is only stored in-memory and not in the disk storage, as soon as you stop the task for some reason, you have to go back to the rebuilding process again.

Maybe this article can help you with this: https://medium.com/@wlarch/avoid-long-running-and-killed-gulp-tasks-with-this-simple-caching-gulp-plugin-67ec8bbf466b

Do not waste time during your build process when there is no reason to.

This plugin will process all files in gulp.src() if at least one file was changed. This plugin uses the features of node-file-cache to keep track of the assets SHA1 hashed content in a cache.json file.

@Hedgefog
Copy link
Owner

Work in Progress: #7

@Hedgefog Hedgefog mentioned this issue Nov 12, 2022
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

Successfully merging a pull request may close this issue.

2 participants