mirror of
https://github.com/chinchang/web-maker.git
synced 2025-06-16 04:28:23 +02:00
Add build-extension task in gulpfile.js
This commit is contained in:
18
gulpfile.js
18
gulpfile.js
@ -260,3 +260,21 @@ gulp.task('dev-release', function(callback) {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
gulp.task('build-extension', function(callback) {
|
||||||
|
runSequence(
|
||||||
|
'runWebpack',
|
||||||
|
'copyFiles',
|
||||||
|
'fixIndex',
|
||||||
|
'useRef',
|
||||||
|
'packageExtension',
|
||||||
|
function(error) {
|
||||||
|
if (error) {
|
||||||
|
console.log(error.message);
|
||||||
|
} else {
|
||||||
|
console.log('DEV RELEASE FINISHED SUCCESSFULLY');
|
||||||
|
}
|
||||||
|
callback(error);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
});
|
||||||
|
Reference in New Issue
Block a user