BundleConfig.cs 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289
  1. using System.Web.Optimization;
  2. namespace WePlatform
  3. {
  4. public static class BundleConfig
  5. {
  6. public static void RegisterBundles(BundleCollection bundles)
  7. {
  8. bundles.IgnoreList.Clear();
  9. BundleTable.EnableOptimizations = false;
  10. bundles.Add(
  11. new StyleBundle("~/Bundles/Base/Css")
  12. .Include("~/Content/fonts/roboto/roboto.css", new CssRewriteUrlTransform())
  13. .Include("~/Content/Icon/iconfont.css", new CssRewriteUrlTransform())
  14. .Include("~/Content/Libs/fontawesome-free/css/all.min.css", new CssRewriteUrlTransform())
  15. //.Include("~/Content/Libs/bootstrap/css/bootstrap.css", new CssRewriteUrlTransform())
  16. .Include("~/Content/AdminLTE/css/adminlte.min.css", new CssRewriteUrlTransform())
  17. .Include("~/Content/Libs/bootstrap-table/bootstrap-table.css", new CssRewriteUrlTransform())
  18. .Include("~/Content/Libs/select2/css/select2.css", new CssRewriteUrlTransform())
  19. .Include("~/Content/Libs/overlayScrollbars/css/OverlayScrollbars.min.css",
  20. new CssRewriteUrlTransform())
  21. .Include("~/Content/Libs/toastr/toastr.css", new CssRewriteUrlTransform())
  22. //.Include("~/Content/Libs/sweetalert2/sweetalert2.min.css", new CssRewriteUrlTransform())
  23. //.Include("~/Content/Libs/famfamfam-flags/famfamfam-flags.css", new CssRewriteUrlTransform())
  24. .Include("~/Content/Libs/Waves/waves.css", new CssRewriteUrlTransform())
  25. .Include("~/Content/Libs/animate/animate.css", new CssRewriteUrlTransform())
  26. );
  27. bundles.Add(
  28. new StyleBundle("~/Bundles/Site/Css")
  29. .Include("~/Content/Css/iwb.style.css", new CssRewriteUrlTransform())
  30. //.Include("~/Content/css/themes/all-themes.css", new CssRewriteUrlTransform())
  31. );
  32. bundles.Add(
  33. new ScriptBundle("~/Bundles/Jquery/Js")
  34. .Include("~/lib/json2/json2.js")
  35. .Include("~/Content/Libs/json2/json2.js")
  36. .Include("~/Content/Libs/jquery/jquery.js")
  37. );
  38. bundles.Add(
  39. new ScriptBundle("~/Bundles/Base/Js")
  40. .Include("~/Content/Libs/jquery-ui/jquery-ui.min.js")
  41. .Include("~/Content/Libs/bootstrap4/bootstrap.bundle.min.js")
  42. .Include("~/Content/Libs/bootstrap-table/bootstrap-table.js")
  43. .Include("~/Content/Libs/moment/moment-with-locales.js")
  44. .Include("~/Content/Libs/mustache/mustache.min.js")
  45. .Include("~/Content/Libs/overlayScrollbars/js/jquery.overlayScrollbars.min.js")
  46. .Include("~/Content/Libs/jquery-validation/jquery.validate.js")
  47. .Include("~/Content/Libs/blockUI/jquery.blockUI.js")
  48. .Include("~/Content/Libs/toastr/toastr.js")
  49. .Include("~/Content/Libs/sweetalert/sweetalert.min.js")
  50. //.Include("~/Content/Libs/sweetalert2/sweetalert2.min.js")
  51. .Include("~/Content/Libs/spin.js/spin.js")
  52. .Include("~/Content/Libs/spin.js/jquery.spin.js")
  53. .Include("~/Content/Libs/select2/js/select2.min.js")
  54. .Include("~/Content/Libs/select2/js/select2tree.js")
  55. .Include("~/Content/Libs/jquery-slimscroll/jquery.slimscroll.js")
  56. .Include("~/Content/Libs/Waves/waves.js")
  57. .Include("~/Content/Libs/push.js/push.js")
  58. .Include("~/Content/Libs/Abp/abp.js")
  59. .Include("~/Content/Libs/Abp/abp.jquery.js")
  60. .Include("~/Content/Libs/Abp/abp.toastr.js")
  61. .Include("~/Content/Libs/Abp/abp.blockUI.js")
  62. .Include("~/Content/Libs/Abp/abp.spin.js")
  63. .Include("~/Content/Libs/Abp/abp.sweet-alert.js")
  64. .Include("~/Content/AdminLTE/js/adminlte.js")
  65. );
  66. bundles.Add(
  67. new ScriptBundle("~/Bundles/Iwb/Js")
  68. .Include("~/Content/Js/iwb.js")
  69. .Include("~/Content/Js/notificationHelper.js")
  70. .Include("~/Content/Js/util.js")
  71. );
  72. bundles.Add(
  73. new ScriptBundle("~/Bundles/Iwb-Account/Js")
  74. .Include("~/Content/Js/iwb.js")
  75. .Include("~/Content/Js/util.js")
  76. );
  77. //Home-Index Bundles
  78. bundles.Add(
  79. new ScriptBundle("~/Bundles/home-index")
  80. .Include(
  81. "~/lib/jquery-countTo/jquery.countTo.js",
  82. "~/lib/raphael/raphael.js",
  83. "~/lib/morris.js/morris.js",
  84. "~/lib/chart.js/dist/Chart.bundle.js",
  85. "~/lib/Flot/jquery.flot.js",
  86. "~/lib/Flot/jquery.flot.resize.js",
  87. "~/lib/Flot/jquery.flot.pie.js",
  88. "~/lib/Flot/jquery.flot.categories.js",
  89. "~/lib/Flot/jquery.flot.time.js",
  90. "~/lib/jquery-sparkline/dist/jquery.sparkline.js",
  91. "~/Views/Home/Index.js"
  92. )
  93. );
  94. //~/Bundles/css
  95. bundles.Add(
  96. new StyleBundle("~/Bundles/css")
  97. .Include("~/css/main.css")
  98. );
  99. }
  100. //public static void RegisterBundles(BundleCollection bundles)
  101. //{
  102. // bundles.IgnoreList.Clear();
  103. // BundleTable.EnableOptimizations = false;
  104. // bundles.Add(
  105. // new StyleBundle("~/Bundles/Base/Css")
  106. // .Include("~/Content/fonts/roboto/roboto.css", new CssRewriteUrlTransform())
  107. // .Include("~/Content/Icon/iconfont.css", new CssRewriteUrlTransform())
  108. // .Include("~/Content/Libs/bootstrap/css/bootstrap.css", new CssRewriteUrlTransform())
  109. // .Include("~/Content/Libs/bootstrap-table/bootstrap-table.css", new CssRewriteUrlTransform())
  110. // .Include("~/Content/Libs/select2/css/select2.css", new CssRewriteUrlTransform())
  111. // .Include("~/Content/Libs/toastr/toastr.css", new CssRewriteUrlTransform())
  112. // .Include("~/Content/Libs/famfamfam-flags/famfamfam-flags.css", new CssRewriteUrlTransform())
  113. // .Include("~/Content/Libs/Waves/waves.css", new CssRewriteUrlTransform())
  114. // .Include("~/Content/Libs/animate/animate.css", new CssRewriteUrlTransform())
  115. // );
  116. // bundles.Add(
  117. // new StyleBundle("~/Bundles/Site/Css")
  118. // .Include("~/Content/css/Site.css", new CssRewriteUrlTransform())
  119. // //.Include("~/Content/css/themes/all-themes.css", new CssRewriteUrlTransform())
  120. // );
  121. // bundles.Add(
  122. // new ScriptBundle("~/Bundles/Jquery/Js")
  123. // .Include("~/lib/json2/json2.js")
  124. // .Include("~/Content/Libs/json2/json2.js")
  125. // .Include("~/Content/Libs/jquery/jquery.js")
  126. // );
  127. // bundles.Add(
  128. // new ScriptBundle("~/Bundles/Base/Js")
  129. // .Include("~/Content/Libs/bootstrap/js/bootstrap.js")
  130. // .Include("~/Content/Libs/bootstrap-table/bootstrap-table.js")
  131. // .Include("~/Content/Libs/moment/moment-with-locales.js")
  132. // .Include("~/Content/Libs/jquery-validation/jquery.validate.js")
  133. // .Include("~/Content/Libs/blockUI/jquery.blockUI.js")
  134. // .Include("~/Content/Libs/toastr/toastr.js")
  135. // .Include("~/Content/Libs/sweetalert/sweetalert.min.js")
  136. // .Include("~/Content/Libs/spin.js/spin.js")
  137. // .Include("~/Content/Libs/spin.js/jquery.spin.js")
  138. // .Include("~/Content/Libs/select2/js/select2.min.js")
  139. // .Include("~/Content/Libs/select2/js/select2tree.js")
  140. // .Include("~/Content/Libs/jquery-slimscroll/jquery.slimscroll.js")
  141. // .Include("~/Content/Libs/Waves/waves.js")
  142. // .Include("~/Content/Libs/push.js/push.js")
  143. // .Include("~/Content/Libs/Abp/abp.js")
  144. // .Include("~/Content/Libs/Abp/abp.jquery.js")
  145. // .Include("~/Content/Libs/Abp/abp.toastr.js")
  146. // .Include("~/Content/Libs/Abp/abp.blockUI.js")
  147. // .Include("~/Content/Libs/Abp/abp.spin.js")
  148. // .Include("~/Content/Libs/Abp/abp.sweet-alert.js")
  149. // );
  150. // bundles.Add(
  151. // new ScriptBundle("~/Bundles/Iwb/Js")
  152. // .Include("~/Content/Js/iwb.js")
  153. // .Include("~/Content/Js/util.js")
  154. // );
  155. // bundles.Add(
  156. // new StyleBundle("~/Bundles/account-vendor/css")
  157. // .Include("~/fonts/roboto/roboto.css", new CssRewriteUrlTransform())
  158. // .Include("~/fonts/material-icons/materialicons.css", new CssRewriteUrlTransform())
  159. // .Include("~/lib/bootstrap/dist/css/bootstrap.css", new CssRewriteUrlTransform())
  160. // .Include("~/lib/toastr/toastr.css", new CssRewriteUrlTransform())
  161. // .Include("~/lib/famfamfam-flags/dist/sprite/famfamfam-flags.css", new CssRewriteUrlTransform())
  162. // .Include("~/lib/font-awesome/css/font-awesome.css", new CssRewriteUrlTransform())
  163. // .Include("~/lib/Waves/dist/waves.css", new CssRewriteUrlTransform())
  164. // .Include("~/lib/animate.css/animate.css", new CssRewriteUrlTransform())
  165. // .Include("~/css/materialize.css", new CssRewriteUrlTransform())
  166. // .Include("~/css/style.css", new CssRewriteUrlTransform())
  167. // .Include("~/Views/Account/_Layout.css", new CssRewriteUrlTransform())
  168. // );
  169. // bundles.Add(
  170. // new ScriptBundle("~/Bundles/account-vendor/js/bottom")
  171. // .Include(
  172. // "~/lib/json2/json2.js",
  173. // "~/lib/jquery/dist/jquery.js",
  174. // "~/lib/bootstrap/dist/js/bootstrap.js",
  175. // "~/lib/moment/min/moment-with-locales.js",
  176. // "~/lib/jquery-validation/dist/jquery.validate.js",
  177. // "~/lib/blockUI/jquery.blockUI.js",
  178. // "~/lib/toastr/toastr.js",
  179. // "~/lib/sweetalert/dist/sweetalert.min.js",
  180. // "~/lib/spin.js/spin.js",
  181. // "~/lib/spin.js/jquery.spin.js",
  182. // "~/lib/Waves/dist/waves.js",
  183. // "~/Abp/Framework/scripts/abp.js",
  184. // "~/Abp/Framework/scripts/libs/abp.jquery.js",
  185. // "~/Abp/Framework/scripts/libs/abp.toastr.js",
  186. // "~/Abp/Framework/scripts/libs/abp.blockUI.js",
  187. // "~/Abp/Framework/scripts/libs/abp.spin.js",
  188. // "~/Abp/Framework/scripts/libs/abp.sweet-alert.js",
  189. // "~/js/admin.js",
  190. // "~/js/main.js"
  191. // )
  192. // );
  193. // //VENDOR RESOURCES
  194. // //~/Bundles/vendor/css
  195. // bundles.Add(
  196. // new StyleBundle("~/Bundles/vendor/css")
  197. // .Include("~/fonts/roboto/roboto.css", new CssRewriteUrlTransform())
  198. // .Include("~/fonts/material-icons/materialicons.css", new CssRewriteUrlTransform())
  199. // .Include("~/lib/bootstrap/dist/css/bootstrap.css", new CssRewriteUrlTransform())
  200. // .Include("~/lib/bootstrap-select/dist/css/bootstrap-select.css", new CssRewriteUrlTransform())
  201. // .Include("~/lib/toastr/toastr.css", new CssRewriteUrlTransform())
  202. // .Include("~/lib/famfamfam-flags/dist/sprite/famfamfam-flags.css", new CssRewriteUrlTransform())
  203. // .Include("~/lib/font-awesome/css/font-awesome.css", new CssRewriteUrlTransform())
  204. // .Include("~/lib/Waves/dist/waves.css", new CssRewriteUrlTransform())
  205. // .Include("~/lib/animate.css/animate.css", new CssRewriteUrlTransform())
  206. // .Include("~/css/materialize.css", new CssRewriteUrlTransform())
  207. // .Include("~/css/style.css", new CssRewriteUrlTransform())
  208. // .Include("~/css/themes/all-themes.css", new CssRewriteUrlTransform())
  209. // .Include("~/Views/Shared/_Layout.css", new CssRewriteUrlTransform())
  210. // );
  211. // //~/Bundles/vendor/bottom (Included in the bottom for fast page load)
  212. // bundles.Add(
  213. // new ScriptBundle("~/Bundles/vendor/js/bottom")
  214. // .Include(
  215. // "~/lib/json2/json2.js",
  216. // "~/lib/jquery/dist/jquery.js",
  217. // "~/lib/bootstrap/dist/js/bootstrap.js",
  218. // "~/lib/moment/min/moment-with-locales.js",
  219. // "~/lib/jquery-validation/dist/jquery.validate.js",
  220. // "~/lib/blockUI/jquery.blockUI.js",
  221. // "~/lib/toastr/toastr.js",
  222. // "~/lib/sweetalert/dist/sweetalert.min.js",
  223. // "~/lib/spin.js/spin.js",
  224. // "~/lib/spin.js/jquery.spin.js",
  225. // "~/lib/bootstrap-select/dist/js/bootstrap-select.js",
  226. // "~/lib/jquery-slimscroll/jquery.slimscroll.js",
  227. // "~/lib/Waves/dist/waves.js",
  228. // "~/lib/push.js/push.js",
  229. // "~/lib/jquery.serializejson/jquery.serializejson.js",
  230. // "~/Abp/Framework/scripts/abp.js",
  231. // "~/Abp/Framework/scripts/libs/abp.jquery.js",
  232. // "~/Abp/Framework/scripts/libs/abp.toastr.js",
  233. // "~/Abp/Framework/scripts/libs/abp.blockUI.js",
  234. // "~/Abp/Framework/scripts/libs/abp.spin.js",
  235. // "~/Abp/Framework/scripts/libs/abp.sweet-alert.js",
  236. // "~/js/admin.js",
  237. // "~/js/main.js",
  238. // "~/Scripts/jquery.signalR-2.4.1.js",
  239. // "~/Views/Shared/_Layout.js"
  240. // )
  241. // );
  242. // //Home-Index Bundles
  243. // bundles.Add(
  244. // new ScriptBundle("~/Bundles/home-index")
  245. // .Include(
  246. // "~/lib/jquery-countTo/jquery.countTo.js",
  247. // "~/lib/raphael/raphael.js",
  248. // "~/lib/morris.js/morris.js",
  249. // "~/lib/chart.js/dist/Chart.bundle.js",
  250. // "~/lib/Flot/jquery.flot.js",
  251. // "~/lib/Flot/jquery.flot.resize.js",
  252. // "~/lib/Flot/jquery.flot.pie.js",
  253. // "~/lib/Flot/jquery.flot.categories.js",
  254. // "~/lib/Flot/jquery.flot.time.js",
  255. // "~/lib/jquery-sparkline/dist/jquery.sparkline.js",
  256. // "~/Views/Home/Index.js"
  257. // )
  258. // );
  259. // //APPLICATION RESOURCES
  260. // //~/Bundles/css
  261. // bundles.Add(
  262. // new StyleBundle("~/Bundles/css")
  263. // .Include("~/css/main.css")
  264. // );
  265. //}
  266. //}
  267. }
  268. }