D
D
Denis Bukreev2018-10-09 13:06:25
Vue.js
Denis Bukreev, 2018-10-09 13:06:25

How to get rid of the long component path when connecting components in Vue?

The problem began to irritate me very much:
5bbc7d20d6ae0180555983.png
And so in almost every file: you literally feel for how many times you need to go back and then step to the desired component. There are also much longer chains from ../
The same goes for connecting style modules inside a Vue component.
Is it possible to somehow organize the connection from the project root?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Askhat Bikmetov, 2018-10-09
@denisbookreev

webpack alias . For Vue versions below 3, in webpack.config.js, above 2 respectively in vue.config.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question