Closed mantaroh closed 1 year ago
This change make a Spear to be configuratable directories: The spear allow the following directory:
spear.config.mjs
You need to write these directories into spear.config.mjs.
e.g.,:
export default { "spearlyAuthKey": "xxxxxxxxx", "projectName": "local-test", "generateSitemap": false, "srcDir": ["src", "src/components", "src/pages" ], "componentsDir": ["src/components"], "distDir": "dist", };
srcDir
src/page
components
What is this?
This change make a Spear to be configuratable directories:
The spear allow the following directory:
spear.config.mjs
You need to write these directories into
spear.config.mjs
.e.g.,:
Note
srcDir
include the child directory, spear might remove child directory. (In above sample settings,src/page
will be removed.)srcDir
has the directory which end withcomponents
, spear will not remove it even if it's child directory.