jamesknelson / gulp-rev-replace

Rewrite occurences of filenames which have been renamed by gulp-rev
MIT License
389 stars 62 forks source link

the plugin can't replace requirejs path in php file #78

Open Flourad opened 6 years ago

Flourad commented 6 years ago

the rev-manifest.json file:

image

the generating file, replacement not work:

image

TheDancingCode commented 6 years ago

That's because the plugin is looking to replace "js/ci/plan-sort.js", not "ci/plan-sort". You can use the modifyUnreved and modifyReved options to remove the leading js/ folder and the .js extension.

fsevenm commented 4 years ago

That's because the plugin is looking to replace "js/ci/plan-sort.js", not "ci/plan-sort". You can use the modifyUnreved and modifyReved options to remove the leading js/ folder and the .js extension.

Awesome. You saved my life bro. I was looking for this in about a night.