1.0.8 • Published 8 years ago

nui-concat v1.0.8

Weekly downloads
4
License
MIT
Repository
github
Last release
8 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

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.5

8 years ago