This chapter describes the configuration of the registered Modern.js Module plugin.
ModuleToolsPlugin[]
undefined
By default, custom plugins are executed in the order specified in the plugins
array. The execution of built-in plugins provided by Modern.js Module happens before the execution of custom plugins.
When plugins use fields that control the execution order, such as pre
and post
, the execution order is adjusted based on the declared fields. For more information, please refer to the Relationship Between Plugins guide.
To learn how to write plugins, please refer to the Plugin Writing Guide.
To use plugins from npm, you need to install them using a package manager and import them in your configuration file.
To use plugins from a local code repository, you can directly import them using a relative path.
If a plugin provides custom configuration options, you can pass the configuration through the plugin function's parameters.