mimosa-groundskeeper

A Mimosa module to remove specific code, like console statements, from JavaScript

mimosa-groundskeeper

This module uses groundskeeper during builds to sanitize your JavaScript code, removing things like console logs or more specific blocks of code.

For more information regarding Mimosa, see http://mimosa.io

Add "groundskeeper" to your list of modules. That's all! Mimosa will install the module for you when you start up.

During mimosa build, when mimosa-groundskeeper encounters a JavaScript file, it cleans it! By default groundskeeper removes all console, debugger, and pragmas that it finds. The options specific what you may want to keep.

groundskeeper:{
  log: true,
  options:{}
}
  • log: Whether or not to log if any files get cleansed. If a file does not having anything to be cleaned, nothing is logged, but if a file has something removed, a notification is logged to the console.
  • options: All options are pass through to groundskeeper. Check out its usage for details.