gulp-magix-combine
v1.0.5
Published
Magix应用 view代码压缩工具
Downloads
6
Readme
gulp-magix-combine
Installation
npm install --save-dev gulp-magix-combine
Usage
var gulp = require('gulp');
var rename = require('gulp-rename');
var uglify = require('gulp-uglify');
var combine = require('gulp-magix-combine');
gulp.task('compress', function() {
gulp.src('./app/views/**/*.js')
.pipe(combine({
magixVersion: 2.0
}))
.pipe(gulp.dest('./build/app/views'))
.pipe(rename(function (path) {
path.basename += "-min";
}))
.pipe(uglify({
output:{ascii_only:true}
}))
.pipe(gulp.dest('./build/app/views'))
})
Options
magixVersion
默认支持的Magix版本为1.0