문제

I'm assigning a few pictures in JavaScript:

if(retina) {
  images.src = '../images/screen2@2x.png';
} else {
  images.src = '../images/screen2.png';
}

How can I tell grunt-rev to change those paths as it does with the images assigned in the CSS files? In this case it should result in something like b511059b.screen2.png.

도움이 되었습니까?

해결책

I have found the solution, if you don't want to match some files, use ! , for example: '!images/*.png'

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top