X
X
xcuube2019-08-25 17:08:31
Vue.js
xcuube, 2019-08-25 17:08:31

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.

spoiler
5d62963ea37ac109500887.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey delphinpro, 2019-08-25
@xcuube

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 question

Ask a Question

731 491 924 answers to any question