1.0.8 • Published 7 years ago
nui-concat v1.0.8
Installation
Install package with NPM and add it to your development dependencies:
npm install --save-dev nui-concat
Usage
var nuiconcat = require('nui-concat');
gulp.task('nuiconcat', function(){
return gulp.src('./pages/*.html')
.pipe(nuiconcat({
paths:{
base:__dirname+'/'
},
alias:{
'common':'{base}libs/common.js'
},
ignore:[
'placeholder'
]
}))
});
Information
插件会匹配页面中的Nui.load(入口模块, callback),将所有的依赖模块合并,并在入口模块同目录生成“入口模块-debug.js”