Strip console, alert, and debugger statements from JavaScript code
Clone or download
Latest commit 3bb309e Feb 28, 2018

readme.md

grunt-strip-debug Build Status

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

Install

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

Usage

require('load-grunt-tasks')(grunt);

grunt.initConfig({
	stripDebug: {
		dist: {
			files: {
				'dist/app.js': 'src/app.js'
			}
		}
	}
});

grunt.registerTask('default', ['stripDebug']);

License

MIT © Sindre Sorhus