I'm working on using the same code in development and production in my rails app for greater good. What I need is a rev-manifest.json file which in development environment would not contain hashes, like this:
{
"example.js": "example.js"
}
This would allow me to be sure that on production my asset will be compiled and present in rev-manifest file.
Now I'm thinking what would be the best thing to achieve this. Maybe I could pass an argument to gulp-rev function telling it whether the hash should be generated or not. This way I would have one piece of code creating the manifest file in my gulpfile.
I'm not an everyday js developer, but I could try to implement it. But just wanted to ask for advices first 😉
Description
I'm working on using the same code in development and production in my rails app for greater good. What I need is a
rev-manifest.json
file which in development environment would not contain hashes, like this:This would allow me to be sure that on production my asset will be compiled and present in
rev-manifest
file.Now I'm thinking what would be the best thing to achieve this. Maybe I could pass an argument to
gulp-rev
function telling it whether the hash should be generated or not. This way I would have one piece of code creating the manifest file in my gulpfile. I'm not an everyday js developer, but I could try to implement it. But just wanted to ask for advices first 😉