klei / grunt-injector

Inject references to files into other files (think scripts and stylesheets into an html file)
MIT License
106 stars 38 forks source link

anything_dependencies override the other #23

Closed sshishe closed 5 years ago

sshishe commented 9 years ago

I am having following order in my gruntFile.js:

  bower_dependencies: {
   files: {
     'index.html': ['bower.json'],
   }
 },
  local_dependencies: {
    files: {
      'index.html': ['build/**/*.min.js', 'css/**/*.css'],
    }
  }

Whatever comes first will be override by the next one. In this case my bower_dependencies in index.html will be replaced by main.css which is caught by local_dependencies.

Any Idea?

ptitgraig commented 8 years ago

@sshishe Can you provides us with your HTML as well?