Webpack plugin to easily configure Camunda Modeler extensions
npm install camunda-modeler-webpack-plugin
Webpack plugin to easily configure Camunda Modeler extensions.
``sh`
npm i --save-dev camunda-modeler-webpack-plugin
Add the plugin to your webpack config.
`js
const CamundaModelerWebpackPlugin = require('camunda-modeler-webpack-plugin');
module.exports = {
plugins: [
new CamundaModelerWebpackPlugin()
]
};
`
You can pass options to customize the resulting webpack configuration.
For example, in case you build a plugin to only extend the Properties Panel without using JSX syntax:
`js`
plugins: [
new CamundaModelerWebpackPlugin({
type: 'propertiesPanel',
propertiesPanelLoader: false
})
]
Following options are available:
| Name | Default | Description |
| ----------- | ----------- | ----------- |
| propertiesPanelAlias | true | Append Properties Panel alias configuration |propertiesPanelLoader
| | true | Append Properties Panel babel-loader configuration (requires @babel/core dependency) |reactAlias
| | true | Append React alias configuration |reactLoader
| | true | Append React babel-loader configuration (requires @babel/core dependency) |carbonReactAlias
| | true | Append Carbon alias configuration |carbonReactLoader
| | true | Append React babel-loader configuration (requires @babel/core dependency) |type
| | | Specific type of the Camunda Modeler Plugin. Only the configuration of the given type will be appended. Allowed values: react, carbonReact, propertiesPanel` |
* Camunda Modeler plugins documentation
* Camunda Modeler plugin helpers
MIT