Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
gulp-uglify-cli
Advanced tools
Readme
Minify javascript by UglifyJs2 with command line options for gulp.
npm i -g uglify-js
npm i --save-dev gulp-uglify-cli
var uglify = require('gulp-uglify-cli')
gulp.task('minifyjs', function(){
return gulp.src('index.js')
.pipe(uglify())
.pipe(gulp.dest('dist'))
})
You can use all command line options in UglifyJs2.
String command line option
uglify('-c -m --screw-ie8')
Array command line option
uglify(['-c', '-m', '--screw-ie8'])
Hash option
uglify({preCommand: 'license.js', command: '-c -m --screw-ie8'})
By setting output
option, you can output file directly.
uglify({command: '-c', output: '/home/test/output.js'})
By setting uglifyjs
option, you can use custom uglifyjs path.
uglify({command: '-c', uglifyjs: '/home/node_modules/.bin/uglifyjs'})
If you have an error 'Permission Denied' in 'gulp-uglify-cli', please try to use tmp
option which is accessible file path.
uglify({command: '-c', tmp: '/tmp/_tmp.js'})
FAQs
Minify javascript by UglifyJs2 with command line options for gulp
The npm package gulp-uglify-cli receives a total of 49 weekly downloads. As such, gulp-uglify-cli popularity was classified as not popular.
We found that gulp-uglify-cli demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.