bundling-and-minification

MVC Bundling and CSS relative URLs

蹲街弑〆低调 提交于 2019-11-26 10:33:17
问题 MVC\'s bundling is returning the wrong URL in CSS images when using CssRewriteUrlTransform: I have an intranet application whose URL is, for example: http://usid01-srv002/MyApplication . It\'s in IIS\'s \"Default Web Site\". Which has the following in BundleConfig.cs : bundles.Add(new StyleBundle(\"~/bundles/jcss\") .Include(\"~/Scripts/JQueryUI/css/*.css\", new CssRewriteUrlTransform()) ); The bundling system is generating the wrong URL for any images referenced in those CSS files, yielding

Bundler not including .min files

旧城冷巷雨未停 提交于 2019-11-25 23:53:38
问题 I have a weird issue with the mvc4 bundler not including files with extension .min.js In my BundleConfig class, I declare public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle(\"~/Scripts/jquery\") .Include(\"~/Scripts/jquery-1.8.0.js\") .Include(\"~/Scripts/jquery.tmpl.min.js\")); } In my view, I declare <html> <head> @Scripts.Render(\"~/Scripts/jquery\") </head><body>test</body> </html> And when it renders, it only renders <html> <head> <script src=\"