Questions tagged [grunt-string-replace]

8 questions
9
votes
1 answer

Vulcanizing polymer one time bind src attribute

I'm using grunt-vulcanize from an Import file with relative paths to a vulcanized.html in a new location. When the file is ready it has change the relative paths to the new location. That's working really good for static files as images or files,…
Mario Levrero
  • 3,345
  • 4
  • 26
  • 57
2
votes
1 answer

Grunt task automation for multiple environments

Here is my grunt file which is not showing error but not working properly, if i remove dev and prod from 'string-replace' and have only one 'string-replace', then its work.Suggest any solution for multiple environmet. //Gruntfile.js module.exports =…
1
vote
1 answer

Grunt-string-replace using an object of key-value pairs

I started using grunt in my build process. In package.json I include variables to be replaced this way: { "name": "myApp", "variableToReplace":{ "var1":"var1_replacement", "var2":"var2_replacement" }, ... } However, I do not know…
Loredra L
  • 1,485
  • 2
  • 16
  • 32
1
vote
1 answer

Grunt-string-replace not working

I have an app folder where I want to replace http://localhost:8000 for http://fomoapp-melbourne.rhcloud.com in two files: companies-list.component.ts and events-list.component.ts. I am trying to use grunt-replace-string plugin and it seemingly runs…
Nikita Vlasenko
  • 4,004
  • 7
  • 47
  • 87
0
votes
2 answers

Replace all strings and wrap as html

I want to find and replace strings in html and replace them as tags. from my name is ron and his name is ben to my name is ron and his name is ben Here is my code, works partially: https://stackblitz.com/edit/react-gjriyz export…
SexyMF
  • 10,657
  • 33
  • 102
  • 206
0
votes
0 answers

MongoDB Replace string between some Specific String

I don't know how to replace string between some Specific String Query in MongoDb eg. "SearchDisplayTag" : "Ceramic Wall Tile Somany Agata Brown Glossy 6", i want to replace specific string "Ceramic Wall Tile" to "Somany Tile" can any one help
0
votes
1 answer

How I need to configure grunt-string-replace to copy and replace a directory tree?

I need to replace a Text in a directory tree and copy to another folder. I'm using grunt text-replace plugin and Glob npm. you could see the config next: replace: { replace2: { src: 'js/app/circo/**/*.js', dest:…
Sonny Chivas
  • 17
  • 10
-1
votes
1 answer

JS Regex replace everything between and including HTML comments

I'm trying to use grunt-string-replace to replace the contents of a file between 2 HTML comments. What I have come up with works fine over a single line but for the life of me, I cannot get it to match where there are multiple lines.