gulp-cmd-norm
document 中文文档 gulp-cmd-norm is a simple standardized CMD modular packaging tool.
Feature
- automatically handles module paths and other issues.
- Support for dependency module merging.
Install
npm intall gulp-cmd-norm
Usage
var gulp = ; var cmd = ; gulp;
Intro
source
//test.js;
Out
;
API
cmd({id:'mod/',base:'test/',....})
Parameters
parameters name | data type | description |
---|---|---|
id | String | Module Path? Configuration |
alias | Array | Module Alias |
isExt | Boolean | Does the module automatically? Append .js |
merge | Boolean | Whether to merge dependent modules for unified packaging |
ignore | Array | Ignore ?? module file ? |
encoding | String | File Encoding |
tmpExtNames | String | Custom Extension |