0.1.0 • Published 2 years ago

camunda-modeler-webpack-plugin v0.1.0

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

camunda-modeler-webpack-plugin

Build Status

Webpack plugin to easily configure Camunda Modeler extensions.

Installation

npm i --save-dev camunda-modeler-webpack-plugin

Usage

Add the plugin to your webpack config.

const CamundaModelerWebpackPlugin = require('camunda-modeler-webpack-plugin');

module.exports = {
  plugins: [
    new CamundaModelerWebpackPlugin()
  ]
};

Configuration

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:

plugins: [
  new CamundaModelerWebpackPlugin({
    type: 'propertiesPanel',
    propertiesPanelLoader: false
  })
]

Following options are available:

NameDefaultDescription
propertiesPanelAliastrueAppend Properties Panel alias configuration
propertiesPanelLoadertrueAppend Properties Panel babel-loader configuration (requires @babel/core dependency)
reactAliastrueAppend React alias configuration
reactLoadertrueAppend React babel-loader configuration (requires @babel/core dependency)
typeSpecific type of the Camunda Modeler Plugin. Only the configuration of the given type will be appended. Allowed values: react, propertiesPanel

Resources

License

MIT