古得曼_63b6

关注

react create-react-app v5配置 px2rem (暴露 eject方式)

古得曼_63b6

关注

阅读 28

2023-10-04

找到build文件下的webpack.prod.conf.js文件

定义一个常量version

const Version = new Date().getTime();

然后在.js和.css前面加上.${Version}就可以了(注意得把原本的''换成``)

相关推荐

舟海君

react create-react-app v5 从零搭建(使用 npm run eject)

舟海君 11 0 0

f12b11374cba

react create-react-app v5 从零搭建项目

f12b11374cba 30 0 0

分湖芝蘭

React创建create-react-app项目

分湖芝蘭 111 0 0

zhyuzh3d

React create-react-app搭建(npx)

zhyuzh3d 112 0 0

西特张

使用create-react-app创建react项目

西特张 44 0 0

搬砖的小木匠

使用create-react-app 创建react应用

搬砖的小木匠 80 0 0

微言记

创建create-react-app失败

微言记 117 0 0

清冷的蓝天天

create-react-app 编译进度条配置

清冷的蓝天天 69 0 0

90哦吼

create-react-app卸载与升级

90哦吼 164 0 0

烟中雯城

create-react-app入门教程

烟中雯城 94 0 0

精彩评论(0)

0 0 举报