Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
803 views
in Technique[技术] by (71.8m points)

vue-cli3默认生成打包的文件名是chunk-hash这种格式的,怎么改能每次生成固定的文件名?

image

这样每次修改代码后打包生成的文件都和原来完全不一样,能不能生成固定的可读性更强的文件名称?需要在vue.config.js里面怎么改?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

可以通过 filenamehashing 来控制:

文档地址:https://cli.vuejs.org/config/#filenamehashing


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...