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