strip-debug-loader

1.0.0 • Public • Published

strip-debug-loader

Remove 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' }
    ]
  }
};

Package Sidebar

Install

npm i strip-debug-loader

Weekly Downloads

849

Version

1.0.0

License

MIT

Last publish

Collaborators

  • motoedie