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

Package detail

webpack-comment-remover-loader

tjenkinson291MIT0.0.3

A webpack loader that will remove JS comments from a file.

webpack, loader, comments

readme

npm version

webpack-comment-remover-loader

A webpack loader that will remove JS comments from a file.

Uses strip-json-comments to remove the comments.

Loading JSON files which contain comments

Can be used with json-loader to load json files which contain comments.

Example webpack config snippet:

{
    test: /\.json$/,
    loaders: ['json-loader', 'webpack-comment-remover-loader'],
    exclude: /node_modules/
}