Coder Social home page Coder Social logo

minify-js-sourcemaps's Introduction

zodern:standard-minifier-js

Fast javascript minifier for Meteor apps that creates source maps

Features:

  • Creates production source maps
  • Very fast by using disk and memory caches
  • Compatible with Meteor 1.6 and newer. For Meteor 1.4 - 1.5, use zodern:[email protected] for production source maps.
  • Generates bundle stats for bundle-visualizer

First, you need to remove standard-minifier-js from your app

meteor remove standard-minifier-js

Then add this package with:

meteor add zodern:standard-minifier-js

If you want to prevent access to the source maps, you can add the zodern:hide-production-sourcemaps package. Source maps include the original content from all of your client files, so you probably want to do this step.

meteor add zodern:hide-production-sourcemaps

Error tracking

Source maps allow error tracking services to show you better stack traces. I run Monti APM which provides an error tracking service and can use your app's source maps with no additional config.

To use with other error tracking services, you will need to upload the source maps when deploying. The source map is saved in the bundle from meteor build at programs/<arch>/<filename>.js.map. You will want to upload the source maps for each web arch, and for the dynamic imports for each arch.

Caches

When deploying from CI, you will need to configure the CI to cache at least parts of the .meteor/local folder for the minify cache to work. Learn more at this blog post.

Environment Variables

DISABLE_CLIENT_STATS Set to true to disable creating the stats.json file used by the bundle-visualizer. This can save up to 20+ seconds during production builds for large apps.

METEOR_FASTMINIFIER_CACHE_DEBUG Set to true to view the cache logs

minify-js-sourcemaps's People

Contributors

zodern avatar morloy avatar banjerluke avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.