0.0.5 • Published 7 years ago

onesky-webpack-plugin v0.0.5

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

How it works

It loads the onesky translation files and saves them locally.

Usage:

const OneSkyPlugin = require('onesky-webpack-plugin');

module.exports = {
  plugins: [
    new OneSkyPlugin({
       language: 'en-US',
       projectId: 123,
       fileName: 'en.json',
       apiKey: YOUR_API_KEY,
       secret: YOUR_SECRET_KEY,
       onCompleted: function(loadedFile) {
           return processFile(loadedFile);
       },
       onError: function(error) {
           return handleError(error);
       }
    })
    // ...
  ]
}

Callbacks

onCompleted

Default: returns the downloaded json file.

onError: logs the error

Default: Logs the error message.

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago