BundleConfig.cs 1.1 KB

12345678910111213141516171819202122232425262728
  1. using System.Web;
  2. using System.Web.Optimization;
  3. namespace AppliWebANA {
  4. public class BundleConfig {
  5. // Pour plus d'informations sur le regroupement, visitez http://go.microsoft.com/fwlink/?LinkId=301862
  6. public static void RegisterBundles( BundleCollection bundles ) {
  7. bundles.Add( new ScriptBundle( "~/bundles/jquery" ).Include(
  8. "~/Scripts/jquery-{version}.js" ) );
  9. bundles.Add( new ScriptBundle( "~/bundles/jqueryval" ).Include(
  10. "~/Scripts/jquery.validate*" ) );
  11. // Utilisez la version de développement de Modernizr pour le développement et l'apprentissage. Puis, une fois
  12. // prêt pour la production, utilisez l'outil de génération (bluid) sur http://modernizr.com pour choisir uniquement les tests dont vous avez besoin.
  13. bundles.Add( new ScriptBundle( "~/bundles/modernizr" ).Include(
  14. "~/Scripts/modernizr-*" ) );
  15. bundles.Add( new ScriptBundle( "~/bundles/bootstrap" ).Include(
  16. "~/Scripts/bootstrap.js",
  17. "~/Scripts/respond.js" ) );
  18. bundles.Add( new StyleBundle( "~/Content/css" ).Include(
  19. "~/Content/bootstrap.css",
  20. "~/Content/site.css" ) );
  21. }
  22. }
  23. }