An open API service indexing awesome lists of open source software.

https://github.com/pinussilvestrus/camunda-modeler-webpack-plugins

Webpack plugins to easily configure Camunda Modeler extensions.
https://github.com/pinussilvestrus/camunda-modeler-webpack-plugins

camunda-modeler camunda-modeler-plugin webpack webpack-plugin

Last synced: about 2 months ago
JSON representation

Webpack plugins to easily configure Camunda Modeler extensions.

Awesome Lists containing this project

README

          

> This project is deprecated. Please head over to [camunda/camunda-modeler-webpack-plugin](https://github.com/camunda/camunda-modeler-webpack-plugin) to use the current version.

# camunda-modeler-webpack-plugins

[![Build Status](https://github.com/pinussilvestrus/camunda-modeler-webpack-plugins/workflows/CI/badge.svg)](https://github.com/pinussilvestrus/camunda-modeler-webpack-plugins/actions?query=workflow%3ACI)

Webpack plugins to easily configure Camunda Modeler extensions.

## Installation

```sh
npm i --save-dev camunda-modeler-webpack-plugins
```

## Usage

Add a plugin to your webpack config. For example to configure a React client extension:

```js
const ClientExtensionWebpackPlugin = require("camunda-modeler-webpack-plugins").ClientExtensionWebpackPlugin;

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

or a properties panel extension:

```js
const PropertiesPanelWebpackPlugin = require("camunda-modeler-webpack-plugins").PropertiesPanelWebpackPlugin;

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

## Configuration

You can pass configuration options to the plugins:

```js
plugins: [
new ClientExtensionWebpackPlugin({
loader: false
})
]
```

### ClientExtensionWebpackPlugin

| Name | Default | Description |
| ----------- | ----------- | ----------- |
| `alias` | true | Append React `alias` configuration |
| `loader` | true | Append `babel-loader` configuration (requires `@babel/core` dependency) |

### PropertiesPanelWebpackPlugin

| Name | Default | Description |
| ----------- | ----------- | ----------- |
| `alias` | true | Append Properties Panel `alias` configuration |
| `loader` | true | Append `babel-loader` configuration (requires `@babel/core` dependency) |

## Resources

* [Camunda Modeler plugins documentation](https://github.com/camunda/camunda-modeler/tree/master/docs/plugins#plugging-into-the-camunda-modeler)
* [Camunda Modeler plugin helpers](https://github.com/camunda/camunda-modeler-plugin-helpers)

## License

MIT