1
356693212 Feb 1, 2023
谷歌一下很难吗,rollup 最新的已经修改了 hash 算法了。
|
3
karott7 Feb 1, 2023
import { createHash } from 'node:crypto'
const hash = createHash('sha256').update(content).digest('base64') |
4
Rrrrrr Feb 1, 2023
服了,发个 github 的 url 都发不出。
|
5
Rrrrrr Feb 1, 2023
|
9
Rrrrrr Feb 1, 2023
vite/issues/6928 这里有中文的
|
11
Rrrrrr Feb 1, 2023
A hash based only on the content of the final generated chunk, including transformations in renderChunk and any referenced file hashes.
它是根据生成后的 chunk 来的,所以都会变,没毛病 |
12
jaween OP |
13
aikilan Feb 2, 2023
文件内容没改过,修改 hash 的需求场景是啥?。。。
|