Comparing version 3.0.0-beta2 to 3.0.0-beta3
@@ -21,3 +21,3 @@ { | ||
], | ||
"version": "3.0.0-beta2", | ||
"version": "3.0.0-beta3", | ||
"repository": { | ||
@@ -24,0 +24,0 @@ "type": "git", |
@@ -15,3 +15,3 @@ Minifyify | ||
## Usage | ||
## Simple Usage | ||
@@ -21,4 +21,28 @@ ```js | ||
, minifyify = require('minifyify') | ||
, bundle = new browserify(); | ||
, minifier = new minifyify(); | ||
bundle.transform({global: true}, minifier.transform); | ||
bundle('entry.js') | ||
.bundle({debug: true}) | ||
.pipe(minifier.consume(function (err, src, map) { | ||
// Your code here | ||
})); | ||
``` | ||
## Full Usage | ||
```js | ||
var path = require('path') | ||
, browserify = require('browserify') | ||
, minifyify = require('minifyify') | ||
, bundle | ||
, options // See docs below; | ||
, minifier | ||
, options = { | ||
compressPath: function (p) { | ||
return path.relative('my-app-root', p); | ||
} | ||
, map: '/bundle.map.json' | ||
}; | ||
@@ -25,0 +49,0 @@ bundle = new browserify(); |
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
659906
140