Skip to content

Commit d8db3fa

Browse files
committed
add gulp-ugily-es for sw.js
1 parent 21dd8fd commit d8db3fa

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

‎build-system/dist.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,9 @@ gulp.task('dist:serviceworkers', function (cb) {
7373
.pipe($.replace(/_NETWORK_ONLY_/g, swConfig.networkOnly.join(',\n')))
7474
.pipe($.replace(/_CACHE_ONLY_/g, swConfig.cacheOnly.join(',\n')))
7575
.pipe($.replace(/_EXCLUDED_/g, swConfig.excluded.join(',\n')))
76+
.pipe($.uglifyEs.default())
7677
.pipe(gulp.dest(distPath))
77-
.on('end', function () {
78-
cb();
79-
});
78+
.on('end', cb);
8079
});
8180
});
8281

‎package.json‎

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
"@babel/preset-react": "^7.0.0",
2424
"ansi-colors": "^2.0.5",
2525
"babel-eslint": "^8.2.6",
26-
"babel-loader": "^8.0.4",
26+
"babel-loader": "^8.0.5",
2727
"browser-sync": "^2.26.3",
2828
"css-loader": "^1.0.1",
2929
"cssnano": "^4.1.7",
3030
"del": "^3.0.0",
31-
"eslint": "^5.10.0",
32-
"eslint-plugin-react": "^7.10.0",
31+
"eslint": "^5.12.0",
32+
"eslint-plugin-react": "^7.12.3",
3333
"fancy-log": "^1.3.3",
3434
"gulp": "^3.9.1",
3535
"gulp-autoprefixer": "^5.0.0",
@@ -47,8 +47,9 @@
4747
"gulp-sass-lint": "^1.4.0",
4848
"gulp-size": "^3.0.0",
4949
"gulp-uglify": "^3.0.1",
50+
"gulp-uglify-es": "^1.0.4",
5051
"gulp-watch": "^5.0.1",
51-
"imagemin-pngquant": "^6.0.0",
52+
"imagemin-pngquant": "^6.0.1",
5253
"minimist": "^1.2.0",
5354
"node-sass": "^4.11.0",
5455
"plugin-error": "^1.0.1",
@@ -57,11 +58,11 @@
5758
"sass-loader": "^7.1.0",
5859
"serve-index": "^1.9.1",
5960
"through2": "^3.0.0",
60-
"webpack": "^4.28.1",
61-
"webpack-cli": "^3.1.2",
61+
"webpack": "^4.28.4",
62+
"webpack-cli": "^3.2.1",
6263
"webpack-dev-server": "^3.1.10",
6364
"webpack-hot-middleware": "^2.24.3",
64-
"webpack-merge": "^4.1.5"
65+
"webpack-merge": "^4.2.1"
6566
},
6667
"dependencies": {
6768
"@babel/polyfill": "^7.2.3",

0 commit comments

Comments
 (0)