0

I have an angular app with .NET backend. I am on stage where I need to deploy my app on production but before I do, I would like to use the bundling feature in .NET to minify my js,css files.To use bundling feature is not an issue but the problem is I only have index.html page which contain all js and css files references. I need to know what syntax would I need to use to put the bundle on my html page? Is it possible? I know on Razor view or Web Form it's simple to be done but what about If I only have index.html and would like to leverage this feature?

2
  • 1
    There is no special syntax, if the bundle is bundles.Add(new ScriptBundle("~/bundles/jquery").Include("~/Scripts/jquery-{version}.js")); then in your html you want <stript src="/bundles/jquery"> Dec 5, 2014 at 10:41
  • That's very simple. Thanks a lot.
    – Ammar Khan
    Dec 5, 2014 at 15:41

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.