grunt-hashres icon indicating copy to clipboard operation
grunt-hashres copied to clipboard

Replacing paths in a hashed file

Open lightheaded opened this issue 9 years ago • 0 comments

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'
    ],
  }

lightheaded avatar Oct 14 '15 08:10 lightheaded