1.0.1 • Published 5 years ago

webpack-stonejs v1.0.1

Weekly downloads
2
License
ISC
Repository
github
Last release
5 years ago

StoneJS Webpack Plugin

Build Status NPM Version License Dependencies Dev Dependencies Greenkeeper badge

This plugin uses stonejs-tools to extract po.

Requirements

This module requires a minimum of Node v6.9.0 and Webpack v4.0.0.

Getting Started

To begin, you'll need to install webpack-stonejs:

$ npm install webpack-stonejs --save-dev

Then add the plugin to your webpack config. For example:

webpack.config.js

const WebpackStonejs = require('webpack-stonejs');

module.exports = {
  plugins: [
    new WebpackStonejs(),
  ],
};

And run webpack via your preferred method.

Options

options.quiet

Type: Boolean Default value:false`

Do not output the stonejs-tools log.

options.functions

Type: Array Default value: ['_', 'gettext', 'lazyGettext']

List of the translation functions

options.merge

Type: boolean Default value: false

Merge all locales into a single file.

options.format

Type: String Values: json or js Default value: 'json'

Output format for the built catalog.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

Release History

  • 1.0.0: First release

License

MIT

1.0.1

5 years ago

1.0.0

5 years ago