webpack-comment-remover-loader

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

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
webpack-comment-remover-loader
330.0.36 years ago6 years agoMinified + gzip package size for webpack-comment-remover-loader in KB

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: ```javascript {
test: /\.json$/,
loaders: ['json-loader', 'webpack-comment-remover-loader'],
exclude: /node_modules/
} ```