aj_readset
v0.0.5
Published
更新合并读取js,html
Downloads
2
Readme
自用
在配置文件中使用:
const path = require('path');
const read = require('aj_readset');
// 读取set.json
var setJson = read.getJson(path.resolve(__dirname,'./src/pages/0-*/set.json'));
// 读取index.js
var entrys = read.getItems(path.resolve(__dirname,'./src/pages/0-*/index.js'));
// 读取html
var pages = read.getItems(path.resolve(__dirname,'./src/pages/0-*/{*.html,**/*.html}'));