1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-04-21 03:01:52 +02:00

Merge pull request #489 from chinchang/add-build-extension-task

Add build extension task in gulpfile.js
This commit is contained in:
Kushagra Gour 2022-02-20 14:41:43 +05:30 committed by GitHub
commit ad4f65eaed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

1
.gitignore vendored
View File

@ -17,3 +17,4 @@ node_modules/
.sass-cache
extension/
yarn-error.log
extension-*.zip

View File

@ -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);
}
);
});