js-combine-pack

2019-10-08 admin

js-combine-pack是什么

什么是js-combine-pack,js css combine

js-combine-pack使用教程帮助文档

js-combine-pack

blog ria reusable utils

api document

##public api for node

//npm install js-combine-pack
var utils = require('js-combine-pack');
var tool = utils.tool;

var toolOptions = tool.config;

toolOptions.projectName = "your project name";
toolOptions.basedir = "rootdir";

tool.findFiles.allFilesList(filedir)

var jsList = tool.findFiles.allFilesList("test/blog7");
//List all files address list in blog7 directory

tool.findFiles.allFilesCon(jsList)

var jsListCon =  tool.findFiles.allFilesCon(["test/jobs/test1.js","test/jobs/test2.js"]);
//Access to the content of each item in the array

tool.findJsAllImport(filedir,allFilesCon,callback)

var findJsAllImport = tool.findJsAllImport(filedir,allFilesCon,callback);
//Search for all files change, facilitate incremental packaging

##struction this utils is not perfect, continue to optimize!

License

BSD license

本站文章除注明转载外,均为本站原创或编译。欢迎任何形式的转载,但请务必注明出处。

转载请注明:文章转载自 JavaScript中文网 [https://www.javascriptcn.com]

本文地址:https://www.javascriptcn.com/read-76880.html

文章标题:js-combine-pack

回到顶部