gulpfile.js 备份

'use strict';

var gulp = require( 'gulp'),
uglifycss = require( 'gulp-uglifycss'),
htmlmin = require( 'gulp-htmlmin'),
embedSass = require( 'gulp-angular2-embed-sass'),
embedTemplates = require( 'gulp-angular-embed-templates');

gulp. task( 'copy-scss', function() {
     gulp. src([
'src/app/**/*.css',
'src/app/**/*.scss'
])
. pipe( uglifycss({ "uglyComments" : true}))
    . pipe( gulp. dest( 'release'));
});

gulp. task( 'copy-html', function () {
var options = {
removeComments: true, //清除HTML注释
collapseWhitespace: true, //压缩HTML
collapseBooleanAttributes: true, //省略布尔属性的值 ==>
removeEmptyAttributes: true, //删除所有空格作属性值 ==>
removeScriptTypeAttributes: true, //删除

你可能感兴趣的:(NodeJS)