outaTiME / grunt-replace

Replace text patterns with applause.
MIT License
411 stars 47 forks source link

Can replace patterns be specified per file? #54

Closed rabchev closed 10 years ago

outaTiME commented 10 years ago

hi pal, what tying to do (more specifically) ???

you can pefrome replace patterns over the file like this:

replace: {
  dist: {
    options: {
      patterns: [
        {
          match: 'foo',
          replacement: 'bar'
        }
      ]
    },
    files: [
      {expand: true, flatten: true, src: ['src/index.html'], dest: 'build/'}
    ]
  }
}
outaTiME commented 10 years ago

No user feedback, closing for now ...