jharding / grunt-sed

Grunt plugin for search and replace.
https://npmjs.org/package/grunt-sed
MIT License
18 stars 22 forks source link

Allow to use wildcards in path #14

Open zlorf opened 10 years ago

zlorf commented 10 years ago

It would be nice if sed allow to use wildcards and other goodies available in most of grunt tasks (http://gruntjs.com/configuring-tasks#globbing-patterns), for example:

sed:
    all_api_url:
        path: "build/**/*.{js,html}"
        pattern: '%API%'
        replacement: "<%= config.api_url %>"

For now it fails: Warning: ENOENT, no such file or directory.

jharding commented 10 years ago

Pull requests welcomed :smile:

vdininski commented 9 years ago

+1

daniel-rabe commented 7 years ago

https://github.com/jharding/grunt-sed/pull/18