Új hozzászólás Aktív témák

  • Lacc

    aktív tag

    Hali.

    A Bundling and minification-t hogy kell beallitani asp.net mvc 5 projektnel a web.config-ban, hogy mukodjon?

    <remove name="BundleModule" />
    <add name="BundleModule" type="System.Web.Optimization.BundleModule" />

    Ezt hiaba adom hozza a modules-hoz, nem tortenik semmi, annak ellenere, hogy release modban indittom el a projektet.

    De ha ezt a sort hozzaadom a BundleConfig.cs-ben, akkor mar latom a bundles mappat a developer tools-ben a source ful alatt. Csak ezzel meg az a baj, hogy Debug modban is igy tomoritti a js fajlokat, ami meg nem jo.

    BundleTable.EnableOptimizations = true;

    Ezt a templatet probalom elerni a bundles-n keresztul, de nem sikerul sehogy sem osszehoznom.

    bundles.Add(new ScriptBundle("~/bundles/adminltejs").Include(
    "~/Content/Themes/js/adminlte.js"
    ));

    bundles.Add(new StyleBundle("~/bundles/adminltecss")
    .Include("~/Content/Themes/css/font-awesome.css", new CssRewriteUrlTransform())
    .Include("~/Content/Themes/css/AdminLTE.css", new CssRewriteUrlTransform())
    .Include("~/Content/Themes/css/skins/_all-skins.css", new CssRewriteUrlTransform())
    );

    Az a baj, hogy publis eseteben sem latom :/

Új hozzászólás Aktív témák

Hirdetés