![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
tinyify
Advanced tools
Changelog
2.4.3
Readme
a browserify plugin that runs various optimizations, so you don't have to install them all manually.
npm install --save-dev tinyify
browserify -p tinyify app.js
assert()
callsNODE_ENV
with "production"
--no-flat
option, bundle-collapser replaces file paths in require()
calls with short module IDsbrowser-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 can be provided on the command line using subarg syntax, or in a separate options object using the browserify API.
env: {}
Supply custom environment variables for envify.
b.plugin('tinyify', {
env: {
PUBLIC_PATH: 'https://mywebsite.surge.sh/'
}
})
This option is only available in the API. On the CLI, you can define environment variables beforehand instead:
PUBLIC_PATH=https://mywebsite.surge.sh browserify app.js -p tinyify
--no-flat
, flat: false
Disable browser-pack-flat. This enables bundle-collapser instead which will still shrink the output bundle a bit by replacing file paths with short module IDs.
browserify app.js -p [ tinyify --no-flat ]
b.plugin('tinyify', { flat: false })
If you need further customisation, I recommend installing the tools separately instead:
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:
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'))
FAQs
a browserify plugin that runs various optimizations, so you don't have to install them all manually.
The npm package tinyify receives a total of 10,974 weekly downloads. As such, tinyify popularity was classified as popular.
We found that tinyify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 40 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.