Plugins

Create a new directory custom-plugin in the @/plugins directory.

Then within that directory create a file called register.js.

import definePlugin from '@/lib/plugin/definePlugin.js'

export default definePlugin({
   // configure plugin
})

Then within the @/config.js register the plugin.

import defineConfig from '@/lib/config/defineConfig'
import customPlugin from '@/plugins/custom-plugin/register'

export default defineConfig({
    plugins: [
        customPlugin
    ]
})