Skip to content
Branch: master
Go to file
Code

Latest commit

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
lib
 
 
src
 
 
 
 
 
 
 
 
 
 

README.md

mimosa-groundskeeper

Overview

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

Usage

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

Functionality

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.

Default Config

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.

About

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

Resources

You can’t perform that action at this time.