config/cache-path
Note
You need version
1.3.0or newer.
umejs has the ability to utilise an AST cache to speed up the building process, only building files that have been changed. This can dramatically speed up the startup process. It's very easy to start using this: as a matter of fact, you don't have to do anything! By default, umejs will automatically create a cache in the current working directory named .ume-ast-cache.json. You should add this to your .gitignore. However, the behaviour of this cache can be customised!
For example, you can change where this is stored:
const ume = require("@dantenl/umejs")
const path = require('path');
const umeConfig = ume({
cachePath: path.join(__dirname, "cache", ".umejs-cache.json")
// example contentDir and templatePath
contentDir: path.join(__dirname, 'content'),
templatePath: path.join(__dirname, 'layout.ume.html'),
})
However, if you prefer not to cache anything at all, that is also possible. Simply set cachePath to false:
const ume = require("@dantenl/umejs")
ume({
cachePath: false
})