Answer the question
In order to leave comments, you need to log in
How to add vendor to dist?
Good evening! I am learning Vue-router, it needs to be compiled via npm run build
But the vendor folder does not get into the dist folder. How to add vendor to dist in production?
I am attaching the project structure.
Answer the question
In order to leave comments, you need to log in
In general, you do not need to copy any vendors. just include packages in your components and they will be built into the bundle.
It's better to set up code splitting so that vendors are built into a separate chunk:
But if you feel like copying something to dist without processing, then this "something" should be put in the public folder (the index.html template is there initially).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question