Luismahou / grunt-hashres

Hashes your js and css files and rename the <script> and <link> declarations that refer to them in your html/php/etc files.
MIT License
115 stars 41 forks source link

Replacing paths in a hashed file #56

Open lightheaded opened 9 years ago

lightheaded commented 9 years ago

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