gulp-wp-rev
gulp-wp-rev plugin for gulp
Revisioning CSS/JS appending a hash in you assets of wordpress theme.
styles.css?ver=1
→ styles.css?ver=bd0622b828f9346876088cd617566fa5
Usage
First, install gulp-wp-rev
as a development dependency:
npm install --save-dev gulp-wp-rev
Then, add it to your gulpfile.js
:
var wpRev = ; gulp;
API
wp-rev(options)
options.css
Type: String
css source file
options.js
Type: String
js source file
options.cssHandle
Type: String
Name used as a handle for the stylesheet.
options.jsHandle
Type: String
Name used as a handle for the javascript.
License
MIT © raulghm