rox-embedded-webpack-plugin
v1.1.9
Published
A webpack plugin which injects embedded rox configuration into your build
Downloads
27
Keywords
Readme
rox-embedded-webpack-plugin
A webpack plugin which injects embedded rox configuration into your build.
Peer Dependency Requirements
- Webpack 3.0.0 or higher
- A compaitable ROX SDK installed (rox-browser or rox-node).
Installation
Install the plugin:
NPM | Yarn
--- | ---
npm install --save-dev rox-embedded-webpack-plugin
| yarn install -D rox-embedded-webpack-plugin
Usage
CommonJS
const ROXEmbeddedPlugin = require('rox-embedded-webpack-plugin');
module.exports = {
entry: //...,
output: //...,
plugins: [
new ROXEmbeddedPlugin(options)
]
}
ES6 / ES2015 Modules
import ROXEmbeddedPlugin = from 'rox-embedded-webpack-plugin';
export default {
entry: //...,
output: //...,
plugins: [
new ROXEmbeddedPlugin(options)
]
}
Options
It is an object with the following keys:
{
app: <YOUR APP KEY>,
platform: <YOUR_PLATFORM_OF_CHOICE>, // (you can use 'Browser' here)
output: <ABS_TEMPORARY_OUTPUT_DIR> // (OPTIONAL)
}