{"name":"gulp-terser","version":"1.2.0","description":"gulp plugin, compressed es6+ code.","scripts":{"start":"npm run clean && babel ./src --watch --out-dir ./lib","build":"npm run clean && babel ./src --out-dir ./lib","clean":"rimraf ./lib","test":"mocha \"./test/build/**/*.js\"","test:gulp":"gulp --gulpfile ./test/gulpfile.js","eslint":"eslint ./src","flow:check":"flow check","update":"node ./bin/get-version.js"},"main":"lib/index.js","license":"MIT","keywords":["gulp","gulpplugin","uglify-es","terser"],"author":{"name":"段昊辰","email":"duanhaochen@126.com","url":"https://github.com/duan602728596"},"repository":{"type":"git","url":"git://github.com/duan602728596/gulp-terser.git"},"dependencies":{"plugin-error":"^1.0.1","terser":"^4.0.0","through2":"^3.0.1","vinyl-sourcemaps-apply":"^0.2.1"},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.4","@babel/plugin-proposal-optional-chaining":"^7.2.0","@babel/preset-env":"^7.4.4","@babel/preset-flow":"^7.0.0","babel-eslint":"^10.0.1","chai":"^4.2.0","eslint":"5.16.0","eslint-plugin-flowtype":"^3.9.0","flow-bin":"^0.98.1","gulp":"^4.0.2","gulp-plumber":"^1.2.1","gulp-sourcemaps":"^2.6.5","mocha":"^6.1.4","rimraf":"^2.6.3","yargs":"^13.2.4"},"gitHead":"a0df5ce36b520cba7a3b0175193754ca5fc20157","bugs":{"url":"https://github.com/duan602728596/gulp-terser/issues"},"homepage":"https://github.com/duan602728596/gulp-terser#readme","_id":"gulp-terser@1.2.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"duan602728596","email":"duanhaochen@126.com"},"dist":{"integrity":"sha512-lf+jE2DALg2w32p0HRiYMlFYRYelKZPNunHp2pZccCYrrdCLOs0ItbZcN63yr2pbz116IyhUG9mD/QbtRO1FKA==","shasum":"41df2a1d0257d011ba8b05efb2568432ecd0495b","tarball":"http://registry-npm.ywwl.com/gulp-terser/download/gulp-terser-1.2.0.tgz","fileCount":4,"unpackedSize":6635,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc4gjvCRA9TVsSAnZWagAAuZYP/2s34VcqKK8BQmA/CLzO\nMU9NzikmYkkeUHacWScDlyd4O47zoB33Zj4elHeiAsQlLuInsu1/PLwGtJYu\ncilsnTr+h0jVhHvEJOyawPhUVC+B9ilbla9izn6Jryn/76XbD+lVAgabwxuF\ne5Et/9sWgxvX2Ko3hvNaW62gmXUxUzb453oqq4F1GhgrtPyyVyo6Q4ynQHv6\n/5rwKFFUBBt2vTiSkKvw+FQ3TEIiaMsxHag2fvV3rwsQZnUUdZghbgajIW1l\nR2oXcO1CdLVd+Cghlk1q63N83fE+0Pr/hPcIfhFPOqHnff1PGSNwv9WncpTe\nSm+G7jsijg8H0dnljMTEVDRHEQonoSPFvonp6+rRszurhmAlh+1EIGq8zLl9\nH7vSVbWYBy15BDIs5kLphnfD8GW5D6u7iqnDFSHeTbmP9DLX0Se4LbfV1CFZ\njTkalKjTxZ67Ta87sxMUYY2+rwmMVXRXSiGj5Phcc6WtFiSPXX2Vm9PO6TAS\ngf6WSoh4YtZmbccBrFgQG6WbE2In6PzEl/dMugErrlblQ2008elX7oN1wPOp\nNARh9ws0FzNTL7shhQQe/1MQlMjJaR2AYkEhSXX5exoukgTpV4RUll3EOkdy\nEi3n5+hM1yAkk+7jZmG/pYWkVmpDQcmoIpm4nlDnex63Tn3ex48btB99OhUD\nBwaM\r\n=Fc+W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBg/+z6sk8MDivABvoZDgCCnht5uXRTis0v035GyjrqNAiEAmq0bibw2OMWalJbtAPg/h+x89/Fb2OzpSQRnO0xUkrk="}],"size":2904,"noattachment":false,"key":"/gulp-terser/-/gulp-terser-1.2.0.tgz"},"maintainers":[{"name":"duan602728596","email":"duanhaochen@126.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/gulp-terser_1.2.0_1558317294136_0.7856222175814345"},"_hasShrinkwrap":false,"readme":"# gulp-terser\n\nGulp plugin, compressed es6+ code.\n\n## Install\n\n```\n$ npm install gulp-terser --save-dev\n```\nor\n```\n$ yarn add gulp-terser --dev\n```\n\n## How to use\n\n```javascript\nconst gulp = require('gulp');\nconst terser = require('gulp-terser');\n\nfunction es(){\n  return gulp.src('./src/index.js')\n    .pipe(terser())\n    .pipe(gulp.dest('./build'));\n}\n\nexports.default = es;\n```\n\n## Options\n\nTerser configuration can be viewed [https://github.com/terser-js/terser#minify-options](https://github.com/terser-js/terser#minify-options).\n\n```javascript\nconst gulp = require('gulp');\nconst terser = require('gulp-terser');\n\nfunction es(){\n  return gulp.src('./src/index.js')\n    .pipe(terser({\n      keep_fnames: true,\n      mangle: false\n    }))\n    .pipe(gulp.dest('./build'));\n}\n\nexports.default = es;\n```\n\n## Use a 3rd-party version of minifier\n\n```javascript\nconst gulp = require('gulp');\nconst terser = require('terser');\nconst gulpTerser = require('gulp-terser');\n\nfunction es(){\n  return gulp.src('./src/index.js')\n    .pipe(gulpTerser({}, terser.minify))\n    .pipe(gulp.dest('./build'));\n}\n\nexports.default = es;\n```\n\n## Use sourcemaps\n\nYou can use sourcemaps like this:\n\n```javascript\nconst gulp = require('gulp');\nconst sourcemaps = require('gulp-sourcemaps');\nconst terser = require('gulp-terser');\n\nfunction es(){\n  return gulp.src('./src/**/*.js')\n    .pipe(sourcemaps.init())\n    .pipe(terser())\n    .pipe(sourcemaps.write('./'))\n    .pipe(gulp.dest('./build'));\n}\n\nexports.default = es;\n```","publish_time":1558317294291,"_cnpm_publish_time":1558317294291,"dist-tags":{"latest":"2.1.0"}}