gulp-script-rev
v0.0.4
Published
gulp插件,将script标签内的src地址加上版本号
Downloads
2
Maintainers
Readme
gulp-script-rev
gulp插件,gulp插件,将script标签上的src地址加上版本号
View
before
<script src="/static/lib/jquery.min.js"></script>
after
<script src="/static/lib/jquery.min.js?v=0c2547a63e19"></script>
Usage
npm install gulp-script-rev --save-dev
var scriptRev = require('gulp-script-rev');
gulp.task("script", function() {
gulp.src("./views/**/*.blade.php")
.pipe(scriptRev())
.pipe(gulp.dest("./views"));
});
Links
- NPM: https://www.npmjs.com/package/gulp-script-rev
- Bug:https://github.com/kyo4311/gulp-script-rev/issues
- Myblog:http://www.f00sun.com
License
MIT