To compress js files via gulp I have tried using both gulp modules
but it changes the variable I define.
for eg:
var app = angular.module('myApp', [])
.config(function($interpolateProvider){
$interpolateProvider.startSymbol('{[').endSymbol(']}');
});
is compressed to:
var app = angular.module("myApp",[])
.config(function(n){n.startSymbol("{[").endSymbol("]}")});
while using Angularjs with Twig I have to change the mustaches {{ }} to {[ ]} and the angularjs doesn't recognize the n instead of $interpolateProvider.
Any suggestions how to tell uglifyjs not to change my variables while compression?