function readDir(_path){
    let sub = fs.readdirSync(_path)

    // ignore hide files
    sub = sub.filter((e)=>{
        return e.indexOf('.') !== 0
    })

    // complete _path
    // sub = sub.map((e)=>{
    //     return path.resolve(_path, e)
    // })

    if(sub.length === 0){
        console.log('😫  build文件夹下没有文件！'.error)
    }else{
        return sub
    }
}
/**
 * Read all files from given folder recursively
 */
Read all files from given folder recursively
Read all files from given folder recursively
function readDir(_path){
    let sub = fs.readdirSync(_path)
    sub = sub.filter((e)=>{
        return e.indexOf('.') !== 0
    })
    if(sub.length === 0){
        console.log('😫  build文件夹下没有文件！'.error)
    }else{
        return sub
    }
}
function readDir ( _path ) { let sub = fs . readdirSync ( _path ) sub = sub . filter ( ( e ) => { return e . indexOf ( '.' ) !== 0 } ) if ( sub . length === 0 ) { console . log ( '😫  build文件夹下没有文件！'.error) } else { return sub } }
Read all files from given folder recursively
Read all files from given folder recursively
// ignore hide files // complete _path // sub = sub.map((e)=>{ //     return path.resolve(_path, e) // })