Import external script file into Vue.js after build!

Asked

Viewed 192 times

1

I have the following situation, I need to send only the build(dist) of a Vue project to the client, however he will need to create dynamic functions to validate some fields of a form, I have the following structure..

inserir a descrição da imagem aqui When I build it creates this folder scripts with the file index.js inside, and that’s where the functions will be added later to validate the fields.. these functions will be changed periodically with new rules and validations, as I can already leave this imported file within the project? and use it as a Local Function within a Vue component?

Thank you!

  • Friend if I understand well the question, the client will not be able to do anything with the files generated after buid, the build minifica all the files.

  • More by changing the file out of the after build.. this is reflected in the application, I already did this test here worked out.. I am just trying to understand what is the best way to import this file to application!

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.