/camunda-modeler-webpack-plugins

Webpack plugins to easily configure Camunda Modeler extensions.

Primary LanguageJavaScriptMIT LicenseMIT

This project is deprecated. Please head over to camunda/camunda-modeler-webpack-plugin to use the current version.

camunda-modeler-webpack-plugins

Build Status

Webpack plugins to easily configure Camunda Modeler extensions.

Installation

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

Usage

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

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

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

or a properties panel extension:

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

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

Configuration

You can pass configuration options to the plugins:

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

License

MIT