grunt-hashres
grunt-hashres copied to clipboard
Replacing paths in a hashed file
Hey! I have a few scripts depending on each other: script_1.js includes a reference to script_2.js and script_2.js includes a reference to script_3.js. I know it's bad architecture, but I do need to hash script_2.js AND replace the reference to the hashed script_3.js. However currently, script_2.js doesn't get picked up by hashres for replacement.
production: {
src: [
'dist/javascripts/script_2.js',
'dist/javascripts/script_3.js'
dest: [
'dist/javascripts/script_1.js',
'dist/javascripts/script_2.js'
],
}