How vue-cli3 does not use cache files when build.

I recently upgraded to vue-cli3, and found that when I found serve or build, I would give priority to the contents in the cache, which caused me to modify the common method and pack up exactly the same content as before.

I know that the cache file corresponding to serve is in node_modules/.cache, but the cache file corresponding to build can not be found (restart the computer can clearly cache, so guess it may be in memory).

I would like to ask if there is any configuration that requires build not to use caching, or prompts for the location of the cache read by build.

Jun.28,2021

dude, I have the same problem. Do you have a solution?


my current solution is to add the version number. It is that import and require cannot automatically concatenate the current timestamp.

Menu