Skip to content

Remove console, alert, and debugger statements from code processed by webpack

License

Notifications You must be signed in to change notification settings

motoedie/strip-debug-loader

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

strip-debug-loader

Circle CI npm version

Removed debug statements from your code using webpack.

Alerts and console.log() will be removed from your code.

Use especially for production build.

Usage

module.exports = {
  entry: './src/index.js',
  output: {
    path: __dirname,
    filename: 'dist/index.js'
  },
  module: {
    loaders: [
      { test: /\.js$/, loader: 'strip-debug' }
    ]
  }
};

About

Remove console, alert, and debugger statements from code processed by webpack

Resources

License

Stars

Watchers

Forks

Packages

No packages published