Last active
May 13, 2016 14:19
-
-
Save serkanince/691f4e953979ed2b993f5ee823b88d55 to your computer and use it in GitHub Desktop.
Bundle Örnek
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//BundleConfig classın genel yapısı bu şekilde olması gerekiyor. | |
public class BundleConfig | |
{ | |
public static void RegisterBundles(BundleCollection bundles) | |
{ | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Css isimli örnek bir bundle ekliyoruz. | |
public class BundleConfig | |
{ | |
public static void RegisterBundles(BundleCollection bundles) | |
{ | |
bundles.Add(new StyleBundle("~/bundles/Css").Include( | |
"~/assets/css/bootstrap.min.css", | |
"~/assets/plugins/select/css/bootstrap-select.min.css", | |
"~/assets/css/style.min.css") | |
.Include("~/assets/plugins/font-awesome/css/font-awesome.min.css", new CssRewriteUrlTransform())); | |
//Burası Önemli -> minification yapması için gerekli kod satırı. | |
BundleTable.EnableOptimizations = true; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment