perf: remove redundant terser call
Minification is provided by webpack anyway
This commit is contained in:
parent
8a098c1275
commit
a3d941d6a2
|
@ -9,7 +9,6 @@ import * as nodeSass from "sass";
|
|||
const sass = gulpSass(nodeSass);
|
||||
import sourcemaps from "gulp-sourcemaps";
|
||||
import ts from "gulp-typescript";
|
||||
import terser from "gulp-terser";
|
||||
import webpack from "webpack-stream";
|
||||
import vinylPaths from "vinyl-paths";
|
||||
|
||||
|
@ -41,7 +40,6 @@ function compileTS() {
|
|||
return gulp.src(`${srcDir}/ts/**/*.ts`)
|
||||
.pipe(isDevelopment ? sourcemaps.init() : noop())
|
||||
.pipe(ts("tsconfig.json"))
|
||||
.pipe(terser())
|
||||
.pipe(isDevelopment ? sourcemaps.write() : noop())
|
||||
.pipe(gulp.dest(`tmp/js`));
|
||||
}
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
"gulp-rename": "^2.0.0",
|
||||
"gulp-sass": "^5.1.0",
|
||||
"gulp-sourcemaps": "^3.0.0",
|
||||
"gulp-terser": "^2.1.0",
|
||||
"gulp-typescript": "^6.0.0-alpha.1",
|
||||
"sass": "^1.69.5",
|
||||
"terser": "^5.19.2",
|
||||
|
@ -2656,44 +2655,6 @@
|
|||
"xtend": "~4.0.1"
|
||||
}
|
||||
},
|
||||
"node_modules/gulp-terser": {
|
||||
"version": "2.1.0",
|
||||
"resolved": "https://registry.npmjs.org/gulp-terser/-/gulp-terser-2.1.0.tgz",
|
||||
"integrity": "sha512-lQ3+JUdHDVISAlUIUSZ/G9Dz/rBQHxOiYDQ70IVWFQeh4b33TC1MCIU+K18w07PS3rq/CVc34aQO4SUbdaNMPQ==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"plugin-error": "^1.0.1",
|
||||
"terser": "^5.9.0",
|
||||
"through2": "^4.0.2",
|
||||
"vinyl-sourcemaps-apply": "^0.2.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=10"
|
||||
}
|
||||
},
|
||||
"node_modules/gulp-terser/node_modules/readable-stream": {
|
||||
"version": "3.6.2",
|
||||
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz",
|
||||
"integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"inherits": "^2.0.3",
|
||||
"string_decoder": "^1.1.1",
|
||||
"util-deprecate": "^1.0.1"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 6"
|
||||
}
|
||||
},
|
||||
"node_modules/gulp-terser/node_modules/through2": {
|
||||
"version": "4.0.2",
|
||||
"resolved": "https://registry.npmjs.org/through2/-/through2-4.0.2.tgz",
|
||||
"integrity": "sha512-iOqSav00cVxEEICeD7TjLB1sueEL+81Wpzp2bY17uZjZN0pWZPuo4suZ/61VujxmqSGFfgOcNuTZ85QJwNZQpw==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"readable-stream": "3"
|
||||
}
|
||||
},
|
||||
"node_modules/gulp-typescript": {
|
||||
"version": "6.0.0-alpha.1",
|
||||
"resolved": "https://registry.npmjs.org/gulp-typescript/-/gulp-typescript-6.0.0-alpha.1.tgz",
|
||||
|
|
|
@ -27,7 +27,6 @@
|
|||
"gulp-rename": "^2.0.0",
|
||||
"gulp-sass": "^5.1.0",
|
||||
"gulp-sourcemaps": "^3.0.0",
|
||||
"gulp-terser": "^2.1.0",
|
||||
"gulp-typescript": "^6.0.0-alpha.1",
|
||||
"sass": "^1.69.5",
|
||||
"terser": "^5.19.2",
|
||||
|
|
Loading…
Reference in New Issue