fixed bug

This commit is contained in:
dengtongyu committed 2018-05-22 14:57:08 +08:00
1 parent c08b698397
commit fc44782dce
5 files changed
+24 -23

No files matched your search

+6 -5
View File
@@ -89,9 +89,10 @@ init = (pathName) => {
}))
.pipe(webpack({
output: {
filename: 'index.js',
}
filename: 'index.js',
}
}))
//.pipe(webpack( require('./webpack.config.js')(pathConfig.scriptBuildPath) ))
.pipe(gulp.dest(pathConfig.babelOutPath))
.on("end", reload);
});
@@ -174,7 +175,7 @@ init = (pathName) => {
gulp.task('build', function() {
runSequence('stylus_build', 'swig_build', 'htmlmin_build', 'tmod_build', 'babel_build', 'uglify_build',function() {
runSequence('stylus_build', 'swig_build', 'htmlmin_build', 'tmod_build', 'babel_build', 'uglify_build', function() {
console.log(chalk.green.bold(pathName + ' 打包完成!'));
});
});
@@ -201,7 +202,7 @@ copyTpl = (pathName) => {
});
}
exports.selectTpl = (pathName,type) => {
exports.selectTpl = (pathName, type) => {
copyTpl(pathName);
if (type == 1) {
runSequence('copy-pc', function() {
@@ -221,7 +222,7 @@ exports.selectTpl = (pathName,type) => {
exports.dev = (pathName) => {
init(pathName);
runSequence('dev');
watch.init(util.getPathConfig(),gulp);
watch.init(util.getPathConfig(), gulp);
}
exports.pack = (pathName) => {