A
A
Artem2018-11-11 08:35:01
JavaScript
Artem, 2018-11-11 08:35:01

How to write a big application in Vue.js and not die?

Hey!
I have quite a lot of experience developing simple spas with Vue.js. Without server rendering, but with "buns" in the form of Vuex, vue-cli, webpack.
But now I have to write a really big application (dashboard a la crm) with custom controls (UI). There is no server rendering in the requirements.
The difficulty is that now there are already more than 30 components of different sizes, and the assembly in dev mode no longer takes 2 seconds, but 30-45, and this starts to strain. Standard UI project components, such as BaseBtn, BaseInput, etc. moved it to a separate npm library so as not to turn the project structure into a dump.
I ask the Community to help with advice on developing large applications on Vue.js.
Thank you!

PS
Используя БЭМ наткнулся на неожиданную проблему - не хватает названий для блоков...

Solution found, see my answer.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
B
Buzzzzer, 2018-11-11
@ber_enot

Is there something wrong in the webpack configs?
I currently have about 600+ vue components in my project.
Rebuilding in dev with hot reload takes 2-5 seconds.
(win, ram 16gb, ssd, some old i3)

A
Anton Anton, 2018-11-12
@Fragster

Most likely node modules are rebuilt every time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question