Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vite打包问题(只有当文件内容发生变化此 hash 才会重新生成,怎么实现) #12011

Closed
7 tasks done
JaweenDeng opened this issue Feb 10, 2023 · 3 comments
Closed
7 tasks done
Labels
duplicate This issue or pull request already exists

Comments

@JaweenDeng
Copy link

Describe the bug

vite打包vue3项目,项目只修改一个文件,打包出来的dist文件,基本全都有改变,能实现只改哪个文件,打包出来的文件,只改这个文字的hash,其他的不变吗,类似于webpack的contenthash的功能。

Reproduction

https://github.com/vitejs/vite/issues

Steps to reproduce

image
使用的vite版本是4.1.0

查看Rollup.js已对打包实现该功能
image

请问一下,是我配置的出现问题吗

System Info

.

Used Package Manager

npm

Logs

No response

Validations

@Tanimodori
Copy link

dist构建产物一般不加入git版本管理啊,不然你这仓库大小要上天了。

@JaweenDeng
Copy link
Author

dist构建产物一般不加入git版本管理啊,不然你这仓库大小要上天了。

我只是为了对比,修改后两次打包文件的变化,并不是加入git管理~

@sapphi-red
Copy link
Member

Duplicate of #6773

@sapphi-red sapphi-red added duplicate This issue or pull request already exists and removed pending triage labels Feb 10, 2023
@sapphi-red sapphi-red closed this as not planned Won't fix, can't repro, duplicate, stale Feb 10, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Feb 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

3 participants