properties-2-json-webpack-plugin-webpack-4

1.0.4 • Public • Published

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

Package Sidebar

Install

npm i properties-2-json-webpack-plugin-webpack-4

Weekly Downloads

0

Version

1.0.4

License

MIT

Unpacked Size

3.81 kB

Total Files

4

Last publish

Collaborators

  • denis.bezu