tinyify
Advanced tools
Comparing version 2.4.0 to 2.4.1
{ | ||
"name": "tinyify", | ||
"description": "a browserify plugin that runs various optimizations, so you don't have to install them all manually.", | ||
"version": "2.4.0", | ||
"version": "2.4.1", | ||
"author": "Renée Kooi <renee@kooi.me>", | ||
@@ -10,9 +10,9 @@ "bugs": { | ||
"dependencies": { | ||
"browser-pack-flat": "^3.0.0", | ||
"browser-pack-flat": "^3.0.9", | ||
"bundle-collapser": "^1.3.0", | ||
"common-shakeify": "^0.4.3", | ||
"common-shakeify": "^0.4.6", | ||
"envify": "^4.1.0", | ||
"minify-stream": "^1.1.0", | ||
"uglifyify": "^4.0.4", | ||
"unassertify": "^2.0.5" | ||
"uglifyify": "^5.0.0", | ||
"unassertify": "^2.1.1" | ||
}, | ||
@@ -19,0 +19,0 @@ "devDependencies": { |
@@ -71,2 +71,32 @@ # tinyify | ||
## More options? | ||
If you need further customisation, I recommend installing the tools separately instead: | ||
```bash | ||
npm install --save-dev unassertify envify uglifyify common-shakeify browser-pack-flat uglify-js | ||
browserify entry.js \ | ||
-g unassertify \ | ||
-g envify \ | ||
-g uglifyify \ | ||
-p common-shakeify \ | ||
-p browser-pack-flat/plugin \ | ||
| uglifyjs -cm \ | ||
> output.js | ||
``` | ||
Or with the Node API: | ||
```js | ||
browserify('entry.js') | ||
.transform('unassertify', { global: true }) | ||
.transform('envify', { global: true }) | ||
.transform('uglifyify', { global: true }) | ||
.plugin('common-shakeify') | ||
.plugin('browser-pack-flat/plugin') | ||
.bundle() | ||
.pipe(require('minify-stream')()) | ||
.pipe(fs.createWriteStream('./output.js')) | ||
``` | ||
## License | ||
@@ -73,0 +103,0 @@ |
7366
114
+ Addeduglifyify@5.0.2(transitive)
- Removedcommander@2.14.1(transitive)
- Removedextend@1.3.0(transitive)
- Removeduglify-es@3.3.10(transitive)
- Removeduglifyify@4.0.5(transitive)
Updatedbrowser-pack-flat@^3.0.9
Updatedcommon-shakeify@^0.4.6
Updateduglifyify@^5.0.0
Updatedunassertify@^2.1.1