groundskeeper-brunch

Clean javascript files, remove console.log ect... using groundskeeper

npm install groundskeeper-brunch
2 downloads in the last week
47 downloads in the last month

groundskeeper-brunch Build Status

Brunch plugin to Clean javascript files, remove console.log ect... using groundskeeper.

Installation

Install the plugin via npm with

npm install --save groundskeeper-brunch

Usage

To specify groundskeeper options, use config.plugins.groundskeeper object, for example:

config =
  plugins:
    groundskeeper:
      console: true,                          // Keep console logs
      debugger: true                          // Keep debugger; statements
      pragmas: ['validation', 'development'], // Keep pragmas with the following identifiers
      namespace: 'App.logger'                 // Besides console also remove functions in the given namespace,
      replace: '0'

See groundskeeper for more options

npm loves you