Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Strip console, alert, and debugger statements from JavaScript code
JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
tasks
.editorconfig
.gitattributes
.gitignore init
.jshintrc bump deps
.travis.yml
Gruntfile.js
fixture.js
license bump deps
package.json 1.0.1
readme.md tweaks
test.js init

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); // npm install --save-dev load-grunt-tasks

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

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

License

MIT © Sindre Sorhus

Something went wrong with that request. Please try again.