1.0.8 • Published 7 years ago

nui-concat v1.0.8

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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”

Options

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.5

7 years ago