https://github.com/stavinli/gulp-v
gulp版本号?v=
https://github.com/stavinli/gulp-v
gulp gulp-rev gulp-rev-collector
Last synced: 2 months ago
JSON representation
gulp版本号?v=
- Host: GitHub
- URL: https://github.com/stavinli/gulp-v
- Owner: StavinLi
- Created: 2018-07-30T03:15:12.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-07-30T03:24:56.000Z (almost 8 years ago)
- Last Synced: 2025-01-10T22:44:56.319Z (over 1 year ago)
- Topics: gulp, gulp-rev, gulp-rev-collector
- Language: JavaScript
- Size: 1.37 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: readMe.md
Awesome Lists containing this project
README
## 更改node_modules配置文件
### gulp-rev\index.js
* `第135行 manifest[originalFile] = revisionedFile;
更新为: manifest[originalFile] = originalFile + '?v=' + file.revHash;`
### rev-path\index.js
* `9行 return filename + '-' + hash + ext;
更新为: return filename + ext;`
### gulp-rev-collector\index.js
* `40行 path.basename(json[key]).replace(new RegExp( opts.revSuffix ), '' )
更新为: path.basename(json[key]).split('?')[0]
`
* `
第146\170行 regexp: new RegExp( '([\/\\\\\'"])' + pattern, 'g' ),
更新为: regexp: new RegExp( '([\/\\\\\'"])' + pattern+'(\\?v=\\w{10})?', 'g' ),
`