Working with javascript environments using Grunt

2

I have a very bad problem in my web projects, I do not work with environments, I wanted my application to have different configuration types according to the environment, for example: in the DEV environment my application accesses a server and in the PROD environment it accesses another. For this I would have to have a task in Grunt that would change variables in my script when deploying, does anyone know how to do this?

This is my Gruntfile

    
asked by anonymous 11.09.2014 / 02:15

1 answer

1

To do this I use grunt-replace to replace the configuration variables.

Grunt replace plugin

    
15.09.2014 / 15:16