fixed pack
This commit is contained in:
1 parent
34157cded4
commit
355f791c42
3 files changed
+13
-9
No files matched your search
+7
-3
@@ -19,6 +19,7 @@ const runSequence = require('run-sequence');
|
||||
const plumber = require('gulp-plumber');
|
||||
const notify = require('gulp-notify');
|
||||
const copy = require('gulp-contrib-copy');
|
||||
const chalk = require('chalk');
|
||||
const util = require('./util');
|
||||
const watch = require('./watch');
|
||||
|
||||
@@ -172,11 +173,13 @@ init = (pathName) => {
|
||||
});
|
||||
|
||||
|
||||
gulp.task('build', function(callback) {
|
||||
runSequence('stylus_build', 'swig_build', 'htmlmin_build', 'tmod_build', 'babel_build', 'uglify_build');
|
||||
gulp.task('build', function() {
|
||||
runSequence('stylus_build', 'swig_build', 'htmlmin_build', 'tmod_build', 'babel_build', 'uglify_build',function() {
|
||||
console.log(chalk.green.bold(pathName + ' 打包完成!'));
|
||||
});
|
||||
});
|
||||
|
||||
gulp.task('dev', function(callback) {
|
||||
gulp.task('dev', function() {
|
||||
runSequence('stylus_build', 'swig_build', 'htmlmin_build', 'tmod_build', 'babel_build', 'server');
|
||||
});
|
||||
|
||||
@@ -223,5 +226,6 @@ exports.dev = (pathName) => {
|
||||
|
||||
exports.pack = (pathName) => {
|
||||
init(pathName);
|
||||
//console.log(chalk.green(pathName));
|
||||
runSequence('build');
|
||||
}
|
||||
Reference in new issue
Block a user