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

Caching possible? #75

Closed
rottmann opened this issue Dec 7, 2018 · 1 comment · Fixed by #107
Closed

Caching possible? #75

rottmann opened this issue Dec 7, 2018 · 1 comment · Fixed by #107

Comments

@rottmann
Copy link

rottmann commented Dec 7, 2018

Every page view re-generate the .css file from a custom modified UIKit-scss files. This takes on each page view ~750ms.

Is it possible to pass options to hexo, so that hexo did not render the css file each time, only if scss files are modified?

When writing docs and view small changes, it is annoying to wait each time.

@rottmann
Copy link
Author

rottmann commented Dec 7, 2018

I extend middlewares/route.js quick&dirty with a simple memory stream cache. I will add an option to select which files to cache (with an regex) and create a pull request to extend hexo-server (if you want it?).
By default cache would be off.

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.

1 participant