Base solution for your next web application
Open Closed

Query regarding Bundling and Minification. #3489


User avatar
0
sparkyjr created

I am not able to understand why the function CssRewriteUrlWithVirtualDirectoryTransform() is written in MpaBundleConfig.cs. What does that function do? And it has come to my notice that if I don't pass that function as an argument in .Include()(ex .Include(StylePaths.FontAwesome, new CssRewriteUrlWithVirtualDirectoryTransform())) it does not give me .woff errors.

Please explain to me the purpose of the above mentioned function.


1 Answer(s)
  • User Avatar
    0
    alirizaadiyahsi created

    Hi,

    Actually it is not directly .woff errors. You should use CssRewriteUrlWithVirtualDirectoryTransform to fix image and font file references in CSS corrupts when bundled. Check this conversation: #71