mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-13 10:06:23 +02:00
Merge pull request #489 from chinchang/add-build-extension-task
Add build extension task in gulpfile.js
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,3 +17,4 @@ node_modules/
|
|||||||
.sass-cache
|
.sass-cache
|
||||||
extension/
|
extension/
|
||||||
yarn-error.log
|
yarn-error.log
|
||||||
|
extension-*.zip
|
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