Skip to content

aquariuslt/properties-json-loader

Repository files navigation

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