<NME> gulpfile.js
<BEF> 'use strict';
let path = require('path');
let gulp = require('gulp');
let rename = require("gulp-rename");
let $ = require('gulp-load-plugins')();

let conf = {
    moduleName: 'ng-rest-api',
    watch: false,
    paths: {
        entry: './src/index.js',
        src: 'src',
    }
};



function webpack() {
    let webpackOptions = {
        watch: false,
        watch: conf.watch,
        module: {
            loaders: [
                {
                    test: /\.js$/,
                    exclude: /node_modules/,
                    loader: 'babel-loader',
                    query: {
                        presets: ['es2015'],
                        plugins: ["transform-object-assign"]
                    }
                }
            ]
        },
        entry: conf.paths.entry,
        output: {filename: `./${conf.moduleName}.js`}
    };


    let webpackChangeHandler = function (err, stats) {
        if (err) {
            conf.errorHandler('Webpack')(err);
        }
        $.util.log(stats.toString({
            colors: $.util.colors.supportsColor,
            chunks: false,
            hash: false,
            version: false
        }));
    };

    return gulp.src(conf.paths.src)
        .pipe(gulp.dest('./'));
}

gulp.task('build', () => {
    return webpack();
});

gulp.task('minify', () => {
    return gulp.src(`./${conf.moduleName}.js`)
        .pipe($.uglify({preserveComments: $.uglifySaveLicense}))
        .pipe(rename(`./${conf.moduleName}.min.js`))
        .pipe(gulp.dest('./'));
});
            entry: './demo/demo.js',
            src: 'src',
            dist: './demo'
        }
    };

    webpack();
});

gulp.task('build', () => {
    webpack();
});

gulp.task('default', ['build'], () => {
    minify();
});
<MSG> Add enableHttpParamSerializerJQLikeMode feature, and small refactoring.

<DFF> @@ -13,8 +13,6 @@ let conf = {
     }
 };
 
-
-
 function webpack() {
     let webpackOptions = {
         watch: false,
@@ -53,13 +51,18 @@ function webpack() {
         .pipe(gulp.dest('./'));
 }
 
-gulp.task('build', () => {
-    return webpack();
-});
 
-gulp.task('minify', () => {
+function minify() {
     return gulp.src(`./${conf.moduleName}.js`)
         .pipe($.uglify({preserveComments: $.uglifySaveLicense}))
         .pipe(rename(`./${conf.moduleName}.min.js`))
         .pipe(gulp.dest('./'));
+}
+
+gulp.task('build', () => {
+    webpack()
+});
+
+gulp.task('default', ['build'], () => {
+    minify();
 });
\ No newline at end of file

Add enableHttpParamSerializerJQLikeMode feature, and small refactoring.