Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

remove-comments-loader

yinhaibo0120kMIT0.1.2

WebPack plugin to remove comments

comments, stripremove

readme

remove-comments-loader - A tiny loader to remove comments in your code.

Usage

module.exports = {
    entry: "./test.js",
    output: {
        path: __dirname,
        filename: "bundle.js"
    },
    module: {
        preLoaders: [
            {
                test: /\.(js|css)$/,
                loader: "remove-comments-loader"
            }
        ]
    }
}