grunt-text-replace icon indicating copy to clipboard operation
grunt-text-replace copied to clipboard

grunt templates / variables within from: ?

Open djjohnjosephuk opened this issue 8 years ago • 1 comments

Is it possible to do something like:

 from: /"<%= pkg.name %>"\.[a-z0-9.]+\.css/g,

?

Putting them package name in manually works, however it would be useful if it could parse the template variable so it didn't need to be changed for each project.

djjohnjosephuk avatar Sep 27 '16 09:09 djjohnjosephuk

I was also trying to do this, so as to not have to hard-code the pkg.name in the regex. This would be very useful if it's currently not possible.

NintendoAge avatar Sep 25 '17 18:09 NintendoAge