Closed joelquatro closed 6 years ago
That is currently the expected behavior. Changing to enabled: false
has no effect on whether the CLI imports those files. That only controls whether it's enabled in the UI.
There are plans to allow enabling/disabling of plugins with the CLI in the near future as part of our upcoming performance improvements, but that state will be managed with the CLI's configs, not in plugin code. Once that feature exists, you will see docs for it in the CLI itself and in the readme here.
Got It, but this loads unnecessary files in the client, such as templates definition, assets, classes, etc. Slowing the frontend for plugins not enabled.
@joelquatro For now, you can emulate really disabling the plugin by simply renaming the plugin starting with a period. They will be ignored by the CLI and by Meteor. It's a hack, but should allow you to workaround it for now, and soon the CLI will allow you to manage this through configuration.
steps to reproduce: