When you have the right structure for your XD plugin, it will look like this:
Copied to your clipboard1my-plugin-folder2├── main.js3└── manifest.json
Your plugin files#
Within the parent folder, you'll need at minimum two files, with these exact names:
manifest.jsonis your plugin’s manifest.
Copied to your clipboardThis file is where you include _facts_ about your plugin, such as its name, the menu item(s) it adds to XD, and so on. [Learn about the manifest here](/develop/plugin-development/plugin-structure/manifest/).
main.jsis your plugin’s code.
These two files go into your plugin's parent directory.