# Declare plugin conflicts
This feature requires version 5.0.0 or above. :::
Sometimes, you may want your plugin to not run with certain other plugins. For example, the "Hello, Dolly" plugin in the official Blessing Skin plugin cannot run at the same time as the "Yiyan" plugin, because both plugins display their own content in the same place on the page.
Therefore Blessing Skin provides a way for you to indicate which plugins cannot be run at the same time.
Through the conflicts
field under the
enchants field in the ``package.json
file , you can declare which
plugins your plugin cannot run at the same time.
E.g:
{
"enchants" : {
"conflicts" : {
"a" : "*" ,
"b" : "^3.0.0"
}
}
}
As above, conflicts
is a key-value pair structure. The key is the
name of other plug-ins
, and the value indicates which versions of the
plug-in have conflicts. Semantic versions can be used here.
According to the above example, the current plug-in cannot run with any
version of the a
plug-in; it cannot run with the 3.x
version of the
b
plug-in. In other words, this will allow b
plugins to run
side-by-side with versions other than 3.x (such as ``2.x
or 4.x
) .