How to use the magix-combine.build function in magix-combine

To help you get started, we’ve selected a few magix-combine examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github thx / magix / doc / gulpfile.js View on Github external
gulp.task('build', ['cleanBuild'], function() {
    combineTool.build();
    gulp.src(buildFolder + '/**/*.js')
        .pipe(uglify({
            compress: {
                drop_console: true
            }
        }))
        .pipe(gulp.dest(buildFolder));

    gulp.src(buildFolder + '/**/*.css')
        .pipe(cssnano())
        .pipe(gulp.dest(buildFolder));
});
github thx / magix / project / gulpfile.js View on Github external
gulp.task('build', ['cleanBuild'], function() {
    combineTool.build();
    gulp.src(buildFolder + '/**/*.js')
        .pipe(uglify({
            compress: {
                drop_console: true,
                drop_debugger: true
            }
        }))
        .pipe(gulp.dest(buildFolder));

    gulp.src(buildFolder + '/**/*.css')
        .pipe(cssnano({
            safe: true
        }))
        .pipe(gulp.dest(buildFolder));
});

magix-combine

合并Magix View的html,js,css成一个js文件,并检测html,js,css中可能存在的问题

MIT
Latest version published 3 months ago

Package Health Score

57 / 100
Full package analysis