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 install
To build the extension, run:
npm run build
The build output will be located in the dist/myextension
directory.
- After building, copy the
myextension
directory fromdist
to thewebextensions
directory in your Mendix app project. The resulting structure should be as follows:
<app directory>/
App.mpr
...
webextensions/
myextension/
manifest.json
main.js
...
-
Rename the
myextension
directory to the actual name of your extension. -
Start Studio Pro with the
--enable-extension-development
feature 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.