1.0.5 • Published 6 years ago

properties-2-json-webpack-plugin v1.0.5

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

Properties2JsonPlugin

Webpack plugin for converting .properties files into .json file

Installation

npm install properties-2-json-webpack-plugin --save-dev

Usage

const Properties2JsonPlugin = require('properties-2-json-webpack-plugin');

module.exports = {
  plugins: [  
    new Properties2JsonPlugin([{
      files: ["**/*_pl.properties"],
      output: 'pl.json'
    }, {
      files: ["**/*_en.properties"],
      output: 'en.json'
    }])
  ]
}

Support options

npm/properties

new Properties2JsonPlugin({
  files: ["**/*_pl.properties"],
  output: 'pl.json',
  options: {
    namespaces: true
  }
})

Tests

npm test

License

MIT License

1.0.5

6 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago