更新
This commit is contained in:
0
src/plugin/.gitkeep
Normal file
0
src/plugin/.gitkeep
Normal file
@@ -12,6 +12,9 @@ const clearAndUpper = (text) => {
|
|||||||
|
|
||||||
// 递归获取目录下所有的 .vue 文件
|
// 递归获取目录下所有的 .vue 文件
|
||||||
const getAllVueFiles = (dir, fileList = []) => {
|
const getAllVueFiles = (dir, fileList = []) => {
|
||||||
|
if (!fs.existsSync(dir)) {
|
||||||
|
return fileList
|
||||||
|
}
|
||||||
const files = fs.readdirSync(dir)
|
const files = fs.readdirSync(dir)
|
||||||
files.forEach((file) => {
|
files.forEach((file) => {
|
||||||
const filePath = path.join(dir, file)
|
const filePath = path.join(dir, file)
|
||||||
|
|||||||
Reference in New Issue
Block a user