feat(cli): optimize gen style deps map

This commit is contained in:
陈嘉涵
2019-12-02 20:57:55 +08:00
parent 6a8a9a6f79
commit 0bdad6f97c
6 changed files with 100 additions and 40 deletions
+6 -1
View File
@@ -1,9 +1,14 @@
import logger from 'signale';
import decamelize from 'decamelize';
import { join } from 'path';
import { get } from 'lodash';
import { readdirSync, existsSync, lstatSync, readFileSync } from 'fs-extra';
import { CONFIG, SRC_DIR, WEBPACK_CONFIG_FILE } from './constant';
logger.config({
displayTimestamp: true
});
export const EXT_REGEXP = /\.\w+$/;
export const SFC_REGEXP = /\.(vue)$/;
export const DEMO_REGEXP = /\/demo$/;
@@ -114,4 +119,4 @@ export function getCssLang(): string {
return preprocessor;
}
export { decamelize };
export { logger, decamelize };