https://github.com/wanadev/webpack-stonejs
Webpack Plugin for Stone.js
https://github.com/wanadev/webpack-stonejs
Last synced: about 2 months ago
JSON representation
Webpack Plugin for Stone.js
- Host: GitHub
- URL: https://github.com/wanadev/webpack-stonejs
- Owner: wanadev
- License: other
- Created: 2019-04-24T08:21:29.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-25T13:01:06.000Z (about 6 years ago)
- Last Synced: 2025-03-05T22:41:46.034Z (2 months ago)
- Language: JavaScript
- Size: 84 KB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# StoneJS Webpack Plugin
[](https://travis-ci.org/wanadev/webpack-stonejs)
[](https://www.npmjs.com/package/webpack-stonejs)
[](https://github.com/wanadev/webpack-stonejs/blob/master/LICENSE)
[]()
[]()
[](https://greenkeeper.io/)This plugin uses [stonejs-tools](https://github.com/flozz/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`:
```console
$ npm install webpack-stonejs --save-dev
```Then add the plugin to your `webpack` config. For example:
**webpack.config.js**
```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](./LICENSE)