Skip to content

Commit b425ab5

Browse files
committed
removed prepack experiment
1 parent a9a891f commit b425ab5

File tree

3 files changed

+5
-13
lines changed

3 files changed

+5
-13
lines changed

gulpfile.js

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ const livereload = require('gulp-livereload');
2020
const htmlmin = require('gulp-htmlmin');
2121
const swPrecache = require('sw-precache');
2222
const image = require('gulp-image');
23-
const pump = require('pump');
24-
2523

2624
// CONFIG
2725
// ============================================================
@@ -36,7 +34,8 @@ const opts = {
3634
}
3735
};
3836

39-
const uglifyConf = {};
37+
const prepackConfig = {};
38+
const uglifyConfig = {};
4039

4140
const htmlminConfig = {
4241
collapseWhitespace: true,
@@ -76,7 +75,7 @@ function compile(watch) {
7675
.pipe(sourcemaps.init({
7776
loadMaps: true
7877
}))
79-
.pipe(uglify())
78+
.pipe(uglify(uglifyConfig))
8079
.pipe(sourcemaps.write('./'))
8180
.pipe(gulp.dest('./public/dist/js'));
8281
}
@@ -126,7 +125,7 @@ gulp.task('js', () => {
126125
.pipe(sourcemaps.init({
127126
loadMaps: true
128127
}))
129-
.pipe(uglify(uglifyConf))
128+
.pipe(uglify(uglifyConfig))
130129
.pipe(sourcemaps.write('./'))
131130
.pipe(gulp.dest('./public/dist/js'));
132131
});
@@ -199,7 +198,7 @@ gulp.task('optimize-service-worker', ['generate-service-worker'], () => {
199198
.pipe(sourcemaps.init({
200199
loadMaps: true
201200
}))
202-
.pipe(uglify(uglifyConf))
201+
.pipe(uglify(uglifyConfig))
203202
.pipe(sourcemaps.write('./'))
204203
.pipe(gulp.dest('./public'));
205204
});

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@
7373
"husky": "^0.13.3",
7474
"lint-staged": "^3.4.0",
7575
"localforage": "^1.5.0",
76-
"pump": "^1.0.2",
7776
"rollup-stream": "^1.19.0",
7877
"sw-precache": "^5.1.1",
7978
"uglify-es": "^3.0.15",

shrinkwrap.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ dependencies:
2828
lint-staged@^3.4.0: 3.6.0
2929
localforage@^1.5.0: 1.5.0
3030
pjs-problems@^1.0.3: 1.0.3
31-
pump@^1.0.2: 1.0.2
3231
rollup-stream@^1.19.0: 1.19.0
3332
sw-precache@^5.1.1: 5.1.1
3433
uglify-es@^3.0.15: 3.0.15
@@ -3755,11 +3754,6 @@ packages:
37553754
parse-asn1: 5.1.0
37563755
randombytes: 2.0.4
37573756
resolution: 39f699f3a46560dd5ebacbca693caf7c65c18cc6
3758-
/pump/1.0.2:
3759-
dependencies:
3760-
end-of-stream: 1.4.0
3761-
once: 1.4.0
3762-
resolution: 3b3ee6512f94f0e575538c17995f9f16990a5d51
37633757
/punycode/1.3.2: 9653a036fb7c1ee42342f2325cceefea3926c48d
37643758
/punycode/1.4.1: c0d5a63b2718800ad8e1eb0fa5269c84dd41845e
37653759
/q/1.5.0: dd01bac9d06d30e6f219aecb8253ee9ebdc308f1

0 commit comments

Comments
 (0)