gezanoletti
gezanoletti

Reputation: 147

Minify AngularJS service generated by ASP.NET Boilerplate

I'm using the template for ASP.NET MVC5, with AngularJS v1.4.8 and ABP v2.1.2.0. I'm preparing my web app to deploy to production and I need to bundle and minify the JS files. I use WebEssencial to do it. But I noticed that JS files (AngularJS services) generated for ABP aren't minified.

Is there a way to minify the AngularJS services generated by ABP for the application services?

Thanks a lot. I appreciate your help.

EDIT

Those JS files are automatically generate by ABP https://aspnetboilerplate.com/Pages/Documents/Dynamic-Web-API

Upvotes: 1

Views: 353

Answers (1)

Vivek Nuna
Vivek Nuna

Reputation: 1

You can use Bundle & Minifier, it’s the best and easy tool for asp.net core projects.

Here is the detailed information on how to use it.

Microsoft also has provided a well explained documentation for Bundling and Minification.

You have to change bundleconfig.json file according to your requirement.

Run dotnet bundle from command prompt once done with the configuration.

Upvotes: 2

Related Questions