You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
500 B
27 lines
500 B
var gulp = require('gulp');
|
|
var runSequence = require('run-sequence');
|
|
var config = require('../config');
|
|
|
|
function build(cb) {
|
|
runSequence(
|
|
'clean',
|
|
'sprite:svg',
|
|
'svgo',
|
|
'sass',
|
|
'pug',
|
|
'copy',
|
|
cb
|
|
);
|
|
}
|
|
|
|
gulp.task('build', function(cb) {
|
|
config.setEnv('production');
|
|
config.logEnv();
|
|
build(cb);
|
|
});
|
|
|
|
gulp.task('build:dev', function(cb) {
|
|
config.setEnv('development');
|
|
config.logEnv();
|
|
build(cb);
|
|
});
|
|
|