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:
commit
ad4f65eaed
1
.gitignore
vendored
1
.gitignore
vendored
@ -17,3 +17,4 @@ node_modules/
|
||||
.sass-cache
|
||||
extension/
|
||||
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);
|
||||
}
|
||||
);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user