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/