modify the index.js file in the node_modules/rev-path directory as follows:
// :
// return modifyFilename(pth, (filename, ext) => `${filename}-${hash}${ext}`);
// 1:
return modifyFilename(pth, (filename, ext) => `${filename}${ext}`);
// 2:
return modifyFilename(pth, (filename, ext) => `${filename}?v=${hash}${ext}`);
I want to change hash to the form of? v =. It is wrong to modify it according to the above two methods. I have found a lot of tutorials on the Internet.
1. If you modify it according to the method of Modification 1, there will be no change in the outside directory
22
:
2