server-side compilation & cache #178
FranckFreiburger
started this conversation in
examples
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This is an example of how to setup server-side compilation and cache.
The idea is to use the same codebase of vue3-sfc-loader (v0.9.2+) on the server with the appropriate options:
compiledCache
to record compiled assetsgetFile
to record all requested dependencies and exclude undesired oneshandleModule
to handle excluded modulescreateCJSModule
to prevent js module creationserver
client (
index.html
)Beta Was this translation helpful? Give feedback.
All reactions