vue.config.js Alias configuration file path in webpack

## Create vue.config.js file in the vue project

alias: the meaning of configuration alias

Configure the relevant properties in vue.config.js as follows
Insert picture description here

Here, 'src' and 'common' can be defined at will (a small hint that once this file is modified, the project must be restarted otherwise it will not take effect)

After the definition, it is very convenient to introduce it without having to write the absolute path and relative path all the time
Insert picture description here
Insert picture description here

Published 4 original articles · praised 8 · visits 26

Guess you like

Origin blog.csdn.net/m0_46269977/article/details/105499900