@shopify/strip-json-comments-loader

Strips JSON comments

Usage no npm install needed!

<script type="module">
  import shopifyStripJsonCommentsLoader from 'https://cdn.skypack.dev/@shopify/strip-json-comments-loader';
</script>

README

A Webpack loader that strips comments from files (using strip-json-comments)

Usage

npm install @shopify/strip-json-comments-loader webpack --save-dev
rules.push({
  test: /\/translations\/.*\.json$/,
  use: '@shopify/strip-json-comments-loader',
  type: 'javascript/auto',
});