File Structure Overview
This article will provide a quick introduction to the files that may appear in a plugin project.
A plugin is an installation package that contains multiple files and can be directly distributed to users.
manifest.json
This is a file that every plugin must have. It contains basic information about the plugin, such as the plugin's name, version, code entry point, etc. There are different configuration methods for different types of plugins. The following is the basic configuration for a "window plugin":
id
- Plugin IDversion
- Plugin Versionname
- Plugin Namelogo
- Plugin Logokeywords
- Plugin Keyword, In addition to the plugin name, users can also use these keywords to quickly search for the plugin.main
- Plugin Window main entryurl
- Entry Pagewidth
- Window Widthheight
- Window Height
Note: You can refer to this article to learn about all the configuration methods for manifest.json.
logo.png
The logo field in the manifest.json corresponds to the plugin's icon, which will be used in the plugin list and the plugin center. Please provide an image with a resolution of 128 x 128 pixels. The icon should generally be in PNG format, as PNG provides the best support for transparency.
index.html
The main field in the manifest.json corresponds to the entry file of the plugin program. When the plugin is executed, index.html will be loaded independently and run in a separate browser window.
Last updated