npm run eject
由于是cdn存放静态资源文件,所以index.html页面内的js、css文件不能是带hash值的没有固定名字的文件,使用create react app
搭建的项目,运行npm run eject使配置露出
config > webpack.config.js
配置项output
选项中的hash和其它地方的hash去除,是输出文件不带hash值
optimization
选项中的splitChunks
,name
设置为true
image.png
相对路径
image.png
runtime script
image.png
publicUrl
image.png