shonny-ua / gulp-rev-collector

Static asset revision data collector from manifests, with was generated from different streams and replace they's links in html template.
MIT License
150 stars 41 forks source link

why not support node v6.2.1 #26

Closed trojanliu closed 7 years ago

trojanliu commented 8 years ago

why not support node v6.2.1

trojanliu commented 8 years ago

like "text!../../templates/common/serviceTemp.json", it would be wrong

shonny-ua commented 8 years ago

WTF? gulp-rev-collector don't containts files like "text!../../templates/common/serviceTemp.json"... Please describe the problem expanded.

trojanliu commented 8 years ago

if my js file contain like "text!../../templates/common/serviceTemp.json" that is a json file, it would be wrong.

gulp.task 'md5_replace_static' , ->
    return gulp.src [
        'images/rev-manifest.json',
        'static/runtime/js/*'
    ]
    .pipe(revCollector())
    .pipe(gulp.dest('static/runtime/js'))
    .on 'end', ->
        if fs.existsSync 'static/runtime/js/rev-manifest.json'
shonny-ua commented 8 years ago

what is contained in images/rev-manifest.json?

shonny-ua commented 8 years ago

Try to use v 1.0.5