optimizify

1.2.0 • Public • Published

optimizify

Browserify transform for optimize-js.

This is just a simple transformation that applies optimize-js. See the documentation there about what it does and how you should check whether this would be useful to you or not.

This is used as any browserify transform, apply it with browserify.transform in your package.json, with the -t or -g flag on the CLI, with b.transform()

IMPORTANT NOTE: in order for this to actually work, it needs to run after Uglify.

Options

You can prevent files from being optimized by passing a filter RegExp or string

var bundler = browserify('index.js')

bundler.transform('optimizify', { filter: /\.json/ })
  .bundle()
  .pipe(process.stdout)

or

browserify -g [ optimizify --filter '.json' ] ./index.js

Package Sidebar

Install

npm i optimizify

Weekly Downloads

1

Version

1.2.0

License

Apache-2.0

Last publish

Collaborators

  • scienceai