We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
So I'm trying to use gulp-terser and which to use the keep_quoted like::
keep_quoted
function terser() { return gulp.src('js/**/*.js') .pipe(gTerser({ keep_fnames: false, keep_quoted: true, // <====== doesn't work here mangle: { keep_quoted: true, // <==== neither here properties: true, keep_fnames: false, } })) .pipe(gulp.dest(`${destStatic}/js/`)) }
but sadly keep getting error: keep_quoted is not a supported option
keep_quoted is not a supported option
The text was updated successfully, but these errors were encountered:
You can try this configuration:
function terser() { return gulp.src('js/**/*.js') .pipe(gTerser({ keep_fnames: false, mangle: { properties: { keep_quoted: true }, keep_fnames: false, } })) .pipe(gulp.dest(`${destStatic}/js/`)) }
You can find it here: https://github.com/terser-js/terser#minify-options
Sorry, something went wrong.
Thanks for fast reply Duan, that solves the issue!
No branches or pull requests
So I'm trying to use gulp-terser and which to use the
keep_quoted
like::but sadly keep getting error:
keep_quoted is not a supported option
The text was updated successfully, but these errors were encountered: