fly-uglify
Advanced tools
Comparing version 0.0.2 to 0.0.3
10
index.js
const assign = require("object-assign") | ||
const minify = require("uglify-js").minify | ||
module.exports = function () { | ||
this.uglify = function (opts) { | ||
return this | ||
.filter((src) => require("uglify-js") | ||
.minify(src, assign({ fromString: true }, opts)).code) | ||
} | ||
this.filter("uglify", (src, opts) => { | ||
try { return minify(src, assign({ fromString: true }, opts)).code } | ||
catch (e) { throw e } | ||
}) | ||
} |
{ | ||
"name": "fly-uglify", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "Fly plugin for Uglify", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -33,3 +33,3 @@ <div align="center"> | ||
[MIT](http://opensource.org/licenses/MIT) © [Jorge Bucaran][author] [et all](https://github.com/bucaran/fly-uglify/graphs/contributors) | ||
[MIT](http://opensource.org/licenses/MIT) © [Jorge Bucaran][author] et [al](https://github.com/bucaran/fly-uglify/graphs/contributors) | ||
@@ -42,3 +42,3 @@ | ||
[fly]: https://www.github.com/bucaran/fly | ||
[fly]: https://www.github.com/flyjs/fly | ||
@@ -45,0 +45,0 @@ [fly-badge]: https://img.shields.io/badge/fly-JS-05B3E1.svg?style=flat-square |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
2913