A webpack loader to remove assertions on production build.
webpack-unassert-loader
is a webpack loader module to remove assertions on production build.
webpack-unassert-loader
applies unassert to target sources through webpack loader chain.
See unassert project for more documentation.
Install webpack-unassert-loader
via npm:
$ npm install --save-dev webpack-unassert-loader
Configure webpack.config.js
to apply webpack-unassert-loader
through webpack loader transformation chain.
{
module: {
loaders: [
{ test: /_test\.js$/, loader: "webpack-unassert-loader" }
]
}
}
See CHANGELOG.md.
Licensed under the MIT license. See LICENSE.