ionic-cache-src
ionic-cache-src copied to clipboard
Minification issue
Hi,
Once again thanks for taking the time to create this plugin, it really has been a life saver for me. I am in the process of taking my app into production mode so I started looking into minifcation of my code. I used the ng-strict-d attribute to get angular to throw errors when a function was not minifcation safe and it showed some functions inside of img-cache-src.js. Specifically .factory('cacheSrcStorage'... and .directive('cacheSrc'.....
I used the array notation on these and now and that seems to have fixed everything, i.e.
.factory('cacheSrcStorage',['$localStorage', function($localStorage) {.....}])
and
.directive('cacheSrc',["$ionicPlatform", "$window", "$interval", "$timeout", "$compile", "$cacheSrc", "$cordovaFileTransfer", "$localStorage", function($ionicPlatform, $window, $interval, $timeout, $compile, $cacheSrc, $cordovaFileTransfer, $localStorage) {....}])
It could be worth updating your code to include this.
Matt