Skip to content

Commit

Permalink
refactor: 修改变量名称
Browse files Browse the repository at this point in the history
  • Loading branch information
duan602728596 committed Sep 26, 2021
1 parent 0cb7d53 commit 18b484b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/gulpTerser.ts
Expand Up @@ -8,10 +8,10 @@ const PLUGIN_NAME: string = 'terser';

/**
* @param { MinifyOptions } gulpTerserOptions: gulp-terser configuration
* @param { typeof minify | undefined } cMinifyFunc:custom minify function
* @param { typeof minify | undefined } customMinifyFunc:custom minify function
*/
function gulpTerser(gulpTerserOptions: MinifyOptions = {}, cMinifyFunc: typeof minify | undefined): Transform {
const minifyFunc: typeof minify = cMinifyFunc ?? minify;
function gulpTerser(gulpTerserOptions: MinifyOptions = {}, customMinifyFunc: typeof minify | undefined): Transform {
const minifyFunc: typeof minify = customMinifyFunc ?? minify;

return obj(async function(chunk: any, enc: BufferEncoding, callback: TransformCallback): Promise<void> {
if (chunk.isStream()) {
Expand Down

0 comments on commit 18b484b

Please sign in to comment.