gwa

gulp-wind-assets-md5

version the static files in html and css

Showing:

Popularity

Downloads/wk

0

GitHub Stars

1

Maintenance

Last Commit

6yrs ago

Contributors

1

Package

Dependencies

3

License

MIT

Type Definitions

Tree-Shakeable

No?

Categories

Readme

gulp-wind-assets-md5

version the static files in html and css

Installation

Install package with NPM:

npm install gulp-wind-assets-md5

Usage

var windmd5 = require('gulp-wind-assets-md5');

gulp.task('windmd5', function () {
    gulp.src('./test/**/*')
        .pipe(windmd5({
            md5Type: 'query',
            md5Size: 8
        }))
        .pipe(gulp.dest('./dest/'));
});

Options

  • md5Size the length of md5 sting, default is 8.

  • md5Type the type to prevent cache. default is query

    • query add query to link like.

      <script src="js/jquery.js?v=7f38dcbf"></script>
      
    • file append md5 string to file name like.

      <script src="js/jquery_7f38dcbf.js"></script>
      
  • baseUrl set baseurl for statice files.

    form

    <script src="js/jquery.js"></script>
    

    to

    <script src="http://static.ruowind.com/test/js/jquery.js?v=7f38dcbf"></script>
    

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial