v-validate size into nuxt bundle is quite big (192.61KB), even though I followed the recommended injection method, but still:

yarn build -a
>
>
This is not an issue, vee-validate does a lot of things, has bunch of
features. You could use the minimal build instead which is smaller but you
would need to add the rules you need yourself, since it doesn't have
anything but the core functionality.
You can import it from 'dist/vee-validate.minimal.esm.js'
I'm actively looking for a way to get the size down. But that would require
modular approach which is breaking for the current API. Maybe In the next
major version.
>
You can import it from 'dist/vee-validate.minimal.esm.js'
@logaretm thanks for the tip!
Should I import each rule from src directly into the dedicated plugin with an extend:
VeeValidate.Validator.extend(...)
or is there a way to add rules only in required components/pages in here (nothing related in the doc):
$_veeValidate: {
validator: 'new' // give me a new validator each time.
},
Ok, I've just got the answer to my question: I'd literally need to add the rules code into my project myself
I will create a separate bundle for validation rules which should be
helpful in the future.
Most helpful comment
I will create a separate bundle for validation rules which should be
helpful in the future.