Closed mcasimir closed 10 years ago
This was requested in #21. The solution is to use ngmin or use the prebuilt minified version. If this is requested again, I may change my stance.
Hi, please add it in the future. In my case, i only minify my own included scripts with ngmin for performance reason. But i want to include the non-min-js version for debugging of third party scripts while developing.
I provide a minified version. You can use that when you don't need to debug.
I'd rather my own build do the minification (and have the option to generate a source map, which is not included in angular-toggle-switch). Mostly because then I don't have to switch out which version of the library I use for debug builds and release builds. (My build system doesn't have ngmin and it'd be a pain to add, unfortunately.)
I figured since ngmin is set up in your build you wouldn't want to add the annotation, though, so I just added it myself in my own fork but excluded that from the PR I submitted. ;)
Having a "debug" stable version would be helpful. I agree that that should have the annotation on it. I'll work on moving towards this.
Any progress on this?
Minification with your code breaks everytihing. Solution: use this:
Instead of:
Thank You!