properties-json-loader

webpack properties-to-json loader based on properties

Usage no npm install needed!

<script type="module">
  import propertiesJsonLoader from 'https://cdn.skypack.dev/properties-json-loader';
</script>

README

Properties to JSON webpack loader

NPM Build Status Github Workflow Status Codecov GitHub issues GitHub license Dependencies Status semantic-release

Introduction

A webpack-loader based on properties .

Support all options in properties.

Usage

Install

npm install properties-json-loader

Webpack Configuration

Use properties parse Options as loader options.

Then will return parsed properties json object.

module.exports = {
  // ...
  module: {
    rules: [
      // ...
      {
        test: /\.properties$/,
          loader: 'properties-json-loader',
          // use `properties` options
          options: {
            namespaces: true
            // ... 
          }
      }
    ]
  }
}

Releases & ChangeLog

See Release Notes