Socket
Socket
Sign inDemoInstall

tinyify

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tinyify - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

12

index.js
var packFlat = require('browser-pack-flat/plugin')
var collapser = require('bundle-collapser/plugin')
var packFlatStream = require('browser-pack-flat')

@@ -53,5 +54,10 @@ var commonShake = require('common-shakeify')

// Output a flat bundle, without function wrappers for each module.
if (opts.flat) {
b.plugin(packFlat)
if (!b._options.fullPaths) {
if (opts.flat) {
// Output a flat bundle, without function wrappers for each module.
b.plugin(packFlat)
} else {
// Replace file paths in require() calls with module IDs.
b.plugin(collapser)
}
}

@@ -58,0 +64,0 @@

{
"name": "tinyify",
"description": "a browserify plugin that runs various optimizations, so you don't have to install them all manually.",
"version": "2.3.0",
"version": "2.4.0",
"author": "Renée Kooi <renee@kooi.me>",
"bugs": {
"url": "https://github.com/goto-bus-stop/tinyify/issues"
"url": "https://github.com/browserify/tinyify/issues"
},
"dependencies": {
"browser-pack-flat": "^3.0.0",
"bundle-collapser": "^1.3.0",
"common-shakeify": "^0.4.3",

@@ -20,3 +21,3 @@ "envify": "^4.1.0",

},
"homepage": "https://github.com/goto-bus-stop/tinyify",
"homepage": "https://github.com/browserify/tinyify",
"keywords": [

@@ -33,3 +34,3 @@ "browserify",

"type": "git",
"url": "https://github.com/goto-bus-stop/tinyify.git"
"url": "https://github.com/browserify/tinyify.git"
},

@@ -36,0 +37,0 @@ "scripts": {

@@ -11,4 +11,4 @@ # tinyify

[npm-url]: https://www.npmjs.com/package/tinyify
[travis-image]: https://img.shields.io/travis/goto-bus-stop/tinyify.svg?style=flat-square
[travis-url]: https://travis-ci.org/goto-bus-stop/tinyify
[travis-image]: https://img.shields.io/travis/browserify/tinyify.svg?style=flat-square
[travis-url]: https://travis-ci.org/browserify/tinyify
[standard-image]: https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat-square

@@ -30,4 +30,8 @@ [standard-url]: http://npm.im/standard

- [browser-pack-flat][] - Output a "flat" bundle, with all modules in a single scope
- [bundle-collapser][] - When using the `--no-flat` option, bundle-collapser replaces file paths in `require()` calls with short module IDs
- [minify-stream][] - Uglify the final bundle
[browser-pack-flat][] and [bundle-collapser][] are both not used if the `--full-paths` option is passed to Browserify.
This way you can still get all of tinyify's other optimizations when building for [disc][].
## Options

@@ -59,3 +63,3 @@

Disable [browser-pack-flat][].
This is useful if you want to generate a [browser-pack][] style bundle, like required by [disc][] for example.
This enables [bundle-collapser][] instead which will still shrink the output bundle a bit by replacing file paths with short module IDs.

@@ -77,6 +81,7 @@ ```bash

[uglifyify]: https://github.com/hughsk/uglifyify
[common-shakeify]: https://github.com/goto-bus-stop/common-shakeify
[common-shakeify]: https://github.com/browserify/common-shakeify
[browser-pack-flat]: https://github.com/goto-bus-stop/browser-pack-flat
[bundle-collapser]: https://github.com/substack/bundle-collapser
[minify-stream]: https://github.com/goto-bus-stop/minify-stream
[browser-pack]: https://github.com/browserify/browser-pack
[disc]: https://github.com/hughsk/disc
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc