webpack-comment-remover-loader

0.0.3 • Public • Published

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/
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.3
    513
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.3
    513
  • 0.0.2
    1
  • 0.0.2-0
    1

Package Sidebar

Install

npm i webpack-comment-remover-loader

Weekly Downloads

79

Version

0.0.3

License

MIT

Last publish

Collaborators

  • tjenkinson