1
0
mirror of https://github.com/chinchang/web-maker.git synced 2025-07-27 08:40:10 +02:00

gulp: fix release task

This commit is contained in:
Kushagra Gour
2019-03-15 17:21:30 +05:30
parent 6724b7c90b
commit cd9d3dd686
2 changed files with 4 additions and 1 deletions

View File

@@ -174,6 +174,7 @@ gulp.task('generate-service-worker', function(callback) {
});
gulp.task('packageExtension', function() {
child_process.execSync('rm -rf extension');
child_process.execSync('cp -R app extension');
child_process.execSync('cp src/manifest.json extension');
child_process.execSync('cp src/options.js extension');
@@ -218,7 +219,7 @@ gulp.task('start-preview-server', function() {
gulp.task('release', function(callback) {
runSequence(
'runWebpack',
['runWebpack', 'buildWebsite'],
'copyFiles',
'fixIndex',
'useRef',
@@ -226,6 +227,7 @@ gulp.task('release', function(callback) {
'minify',
'generate-service-worker',
'packageExtension',
'buildDistFolder',
'cleanup',
function(error) {
if (error) {