This repository contains a template for creating a web extension for Mendix Studio Pro. Use this template to kickstart your web extension development process.
- Node.js (LTS version recommended)
- npm (usually comes with Node.js)
- Mendix Studio Pro (version 10.21.0 or later)
- Clone this repository (or fork it to create your own copy):
git clone https://github.com/mendix/web-extension-template.git- Navigate to the project directory:
cd web-extension-template- Install dependencies:
npm installTo build the extension, run:
npm run buildThe build output will be located in the dist/myextension directory.
- After building, copy the
myextensiondirectory fromdistto thewebextensionsdirectory in your Mendix app project. The resulting structure should be as follows:
<app directory>/
App.mpr
...
webextensions/
myextension/
manifest.json
main.js
...
-
Rename the
myextensiondirectory to the actual name of your extension. -
Start Studio Pro with the
--enable-extension-developmentfeature flag. -
Open your Mendix app in Studio Pro and start using your web extension!
We recommend using Visual Studio Code (VSCode) for developing your web extension. VSCode offers excellent support for JavaScript/TypeScript development and has a wide range of helpful extensions.