Import XX from "@ XXX" in react. How and where to configure this @.

RT, wants to configure @ to a set directory and ask for help.

import XX from "@ XXX" in react. How to configure this @ and where to configure it?

Oct.27,2021

In the configuration file of

webpack, that is, in the file that sets entry and output, there is a resolve configuration item, in which setting alias, means setting path aliases to reduce path complexity
. In the following example, I set two path aliases, @ and Static

.
  configure @ in alias  

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3ea2e-2b170.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3ea2e-2b170.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?