Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why the source has changed, but the hash no change? #257

Open
nieyt opened this issue Jun 25, 2019 · 4 comments
Open

why the source has changed, but the hash no change? #257

nieyt opened this issue Jun 25, 2019 · 4 comments

Comments

@nieyt
Copy link

nieyt commented Jun 25, 2019

I have changed the source css code, and rebuild the task, but the hashed css name is the same as before.here is the code.

gulp.task('style', () => {
  var processors = [
    pxtoviewport({
        viewportWidth: 750,
        viewportUnit: 'vmin'
    })
  ];
  return gulp.src(['./h5-cover/style/**/*.css', './h5-cover/style/*.less'])
      .pipe(less())
      .pipe(postcss(processors))
      .pipe(concat({path: 'index.min.css', cwd: ''}))
      .pipe(minifyCss())
      .pipe(rev())
      .pipe(gulp.dest('./resource/css/'))
      .pipe(rev.manifest())        
      .pipe(gulp.dest('./resource/rev/'));
});

Both are the same name :
image

@TangMonk
Copy link

TangMonk commented Sep 5, 2019

same problem, rev-manifest not changed unless rerun npx gulp

@alliuca
Copy link

alliuca commented Mar 26, 2020

Same here, I have to run it twice

@alliuca
Copy link

alliuca commented Mar 26, 2020

Actually, it doesn't seem to be an issue with gulp-rev. Found out my postcss task wasn't finished by the time it reached rev(), so the first time no changes were detected. Fixed that and it all works.

@andyford
Copy link

andyford commented Apr 9, 2020

I also ran into this problem and never found a gulp-rev based solution. I ended up using gulp-hash instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants