Skip to content

Commit

Permalink
do not uglify js for firefox extension
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdam committed Dec 7, 2018
1 parent ac25c58 commit e9baaa7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ gulp.task('build:js', () => {
.pipe(gulp.dest(`${buildFolder}/js`));
});

gulp.task('build:js-ff', () => {
return gulp.src([`${srcFolder}/js/background.js`, `${srcFolder}/js/popup.js`])
.pipe(babel(babelConfig))
.pipe(gulp.dest(`${buildFolder}/js`));
});

gulp.task('build:js-edge', () => {
return gulp.src([`${srcFolder}/js/backgroundScriptsAPIBridge.js`, `${srcFolder}/js/contentScriptsAPIBridge.js`])
.pipe(babel(babelConfig))
Expand Down Expand Up @@ -148,7 +154,7 @@ gulp.task('firefox', () => {
'build:copy',
[
'build:manifest-ff',
'build:js',
'build:js-ff',
'build:css',
],
[
Expand Down

0 comments on commit e9baaa7

Please sign in to comment.