JSPM

groundskeeper-brunch

0.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q45688F
  • License BSD

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

Package Exports

  • groundskeeper-brunch

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (groundskeeper-brunch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

groundskeeper-brunch Build Status

Brunch plugin to remove console statements, debugger and specific blocks of code using groundskeeper.

Installation

Install the plugin via npm with

npm install --save groundskeeper-brunch

If you are using uglify-js-brunch or other JS obfuscation packages make sure that groundskeeper-brunch is defined before them in your package.json.

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