boolean
false
Used to configure whether Modern.js enables auto-registration of plugins.
This configuration is not recommended. Compared with manually registering plugin, this configuration is relatively black box and cannot add custom configurations to plugin.
By default, installing the plugin requires you to register the plugin manually in the modern.config.ts
.
In addition to means registration, Modern.js also provides a way to automatically register plugins: set the autoLoadPlugin
configuration option to true
.
Modern.js will help you automatically register the plugin by following these steps
package.json
and collect the dependency information.@modern-js/plugin-tailwindcss
and @modern-js/app-tools
, automatic plugin registration will be imported.You can notice that this approach is relatively black-box and you are not even aware of the process of loading the plugin. We want to expose more details to the developer and be able to let the developer control the process.
Therefore we recommend you to register the plugin manually.