Socket
Book a DemoInstallSign in
Socket

grunt-strip-debug

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-strip-debug

Strip console and debugger statements from JavaScript code

Source
npmnpm
Version
0.3.0
Version published
Weekly downloads
8
-46.67%
Maintainers
1
Weekly downloads
 
Created
Source

grunt-strip-debug Build Status

Strip console, alert, and debugger statements from JavaScript code with strip-debug

Getting Started

If you haven't used grunt before, be sure to check out the Getting Started guide, as it explains how to create a gruntfile as well as install and use grunt plugins. Once you're familiar with that process, install this plugin with this command:

$ npm install --save-dev grunt-strip-debug

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-strip-debug');

Tip: the load-grunt-tasks module makes it easier to load multiple grunt tasks.

Example

grunt.initConfig({
	stripDebug: {                              // task
		dist: {                                // target
			files: {                           // dictionary of files
				'dist/app.js': 'src/app.js'    // destination : source
			}
		}
	}
});

grunt.loadNpmTasks('grunt-strip-debug');
grunt.registerTask('default', ['stripDebug']);

License

MIT © Sindre Sorhus

Keywords

gruntplugin

FAQs

Package last updated on 06 Mar 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts