当前位置:网站首页>Alias the path with the help of craco
Alias the path with the help of craco
2022-06-11 06:21:00 【Geek student】
React Alias the path in With the help of craco Realization .
craco.config.json
const path = require("path");
const resolve = dir => path.resolve(__dirname, dir);
module.exports = {
.....
webpack: {
alias: {
"@": resolve("src"),
"components": resolve("src/components")
}
}
}
Import
import Header from '@/components/Header';
import Header from 'components/Header';
边栏推荐
- ERROR 1215 (HY000): Cannot add foreign key constraint
- PHP processing tree and infinite processing
- Instanceof and type conversion
- Login and registration based on servlet, JSP and MySQL
- MySQL implements over partition by (sorting the data in the group after grouping)
- Jenkins voucher management
- FPGA面试题目笔记(一)——FPGA开发流程、亚稳态和竞争冒险、建立保持时间、异步FIFO深度等
- What is sentinel produced by Ali?
- FPGA interview notes (IV) -- sequence detector, gray code in cross clock domain, ping-pong operation, static and dynamic loss reduction, fixed-point lossless error, recovery time and removal time
- Box model
猜你喜欢

Transfer Learning

Who is stronger, zip or 7-Zip, and how to choose?

Installing and using sublist3r in Kali

箭头函数的this指向

MMEditing中超分模型训练与测试

Servlet

FPGA面试题目笔记(三)——跨时钟域中握手信号同步的实现、任意分频、进制转换、RAM存储器等、原码反码和补码

Sqli-libs range 23-24 filtration and secondary injection practice

Servlet

FPGA interview notes (III) -- implementation of handshake signal synchronization in cross clock domain, arbitrary frequency division, binary conversion, RAM memory, original code inversion and complem
随机推荐
Sqli-libs post injection question 11-17 actual combat
Global case | how an airline with a history of 100 years can expand and transform to promote innovation in the aviation industry
Super (subclass)__ init__ And parent class__ init__ ()
Shandong University machine learning final 2021
Transfer Learning
Wechat applet (authorized login) (not recommended, click the home page to view the updated authorized login)
Chapter 6 of machine learning [series] random forest model
Super explanation
ThymeleafEngine模板引擎
Convert text label of dataset to digital label
Training and testing of super score model in mmediting
个人常用软件及浏览器插件分享
Wechat applet (authorized login of TP5)
Autojs, read one line, delete one line, and stop scripts other than your own
Eureka集群搭建
QT socket设置连接超时时间
Matlab实现均值滤波与FPGA进行对比,并采用modelsim波形仿真
How to use the markdown editor
MATLAB realizes mean filtering and FPGA for comparison, and uses Modelsim waveform simulation
Super details to teach you how to use Jenkins to realize automatic jar package deployment