mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
feat(cli): support build watch mode
This commit is contained in:
@@ -77,7 +77,13 @@ function genEntry(params: {
|
||||
});
|
||||
}
|
||||
|
||||
export function genComponentStyle() {
|
||||
export function genComponentStyle(
|
||||
options: { cache: boolean } = { cache: true }
|
||||
) {
|
||||
if (!options.cache) {
|
||||
delete require.cache[STYPE_DEPS_JSON_FILE];
|
||||
}
|
||||
|
||||
const components = getComponents();
|
||||
const baseFile = getCssBaseFile();
|
||||
|
||||
|
Reference in New Issue
Block a user