Closed wemersonrv closed 5 years ago
Yes it's perfectly normal. It uses dynamic importing and code splitting. Then those locale files are fed to the plugin using Nova's FieldServiceProvider
It had to be done this way in order to keep the field.js
file small. Otherwise it would have been 1MB+.
And no in production it will still generate multiple files. This is already a production build. If you want you can of course limit the error locales by forking the repo and eliminating those which you don't want. Another way that would probably also work would be deleting them from the production dist/validation_locales
folder on your machine / production server.
However I will take a look at some stripping sort of functionality in order to limit the extension to only the locales used.
Version: ^1.2.3
After recent updates, it's imports almost 100 files for validation locales files (
validation_locales_01
tovalidation_locales_96
)... it's importing individual files because i'm in development mode ? When generate a production build will generate only one import file ?It's a lot of files...