I know this is common question but every javascript and css packer/minifier i found is for node and contains a lot of necessary files/modules. Currenctly we are working on AngularJs application and we separated all our modules into different files and each controller also has it's own file (following this approach https://github.com/scotch/sapling). Also our server part is .NET MVC so we are not familiar with node or java tools.
This is what I need
So basicly I need just simple packer and compress command line tool. I did some packing with Brunch but I on't like how it wraps my modules around with some code.
As an example here is code for Sapling
https://github.com/scotch/sapling
and here is how it looks packed (wrapped as modules)
http://sapling.scotchmedia.com/js/app.js
Anything simple that can fit these needs?
Ok, after some research I found that .NET MVC bundles can be used for that.
I found how to use non-minified version (for debug) even when debug=false. Credits goes to chrisortman:
Here is my code
public static void RegisterBundles(BundleCollection bundles)
{
BundleTable.EnableOptimizations = true;
bundles.Add(new Bundle("~/bundles/vendor", new NonMinifyingJavascript())
.IncludeDirectory("~/Areas/Qusion/App/libs/", "*.js", true));
bundles.Add(new Bundle("~/bundles/app/finance", new NonMinifyingJavascript())
.IncludeDirectory("~/Areas/Qusion/App/finance/", "*.js", true));
}
NonMinifyingJavascript is from chrisortman link above.