摘要: //mkdir.js const fs=require('fs'); const dirCache={}; function mkdir(filepath) { const arr=filepath.split('/'); let dir=arr[0]; for(let i=1;i<arr.length;i++){ if(!dirCache[dir]&&!... 阅读全文
posted @ 2019-06-14 17:03 无工时代 阅读(6294) 评论(1) 推荐(0) 编辑
摘要: 为了性能优化,找出项目中没有用到的css、png、jpeg、jpg、js文件,对项目总体的资源有一个管理控制。 ### 技术栈 glob、ac多字符自动机、fs、path findNouseSource.js nouse.map 阅读全文
posted @ 2019-06-14 16:08 无工时代 阅读(312) 评论(0) 推荐(0) 编辑