chrisdwheatley / webpack-unassert-loader

A webpack loader to remove assertions on production build.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status NPM package Dependency Status License

webpack-unassert-loader

A webpack loader to remove assertions on production build.

Description

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.

Installation

Install webpack-unassert-loader via npm:

$ npm install --save-dev webpack-unassert-loader

Usage

Configure webpack.config.js to apply webpack-unassert-loader through webpack loader transformation chain.

{
    module: {
        loaders: [
            { test: /_test\.js$/, loader: "webpack-unassert-loader" }
        ]
    }
}

Changelog

See CHANGELOG.md.

License

Licensed under the MIT license. See LICENSE.

About

A webpack loader to remove assertions on production build.

License:MIT License


Languages

Language:JavaScript 100.0%