1.0.0 • Published 8 years ago

targetprocess-mashup-config-loader v1.0.0

Weekly downloads
3
License
-
Repository
github
Last release
8 years ago

targetprocess-mashup-config-loader

Webpack loader to create Targetprocess mashup config from JSON file.

Usage

// config.json
{
    "name": "something"
}
require('targetprocess-mashup-config-loader?libraryTarget=MyMashup!./manifest.json');
// will produce
// tau.mashups.addModule('MyMashup/config', {
//    "name": "something"
// })

Options

libraryTarget

Set root module name.

parse

Parse and output config as valid JSON, set to false to use comments in JSON.

License

MIT (http://www.opensource.org/licenses/mit-license.php)