Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • deep C 20 posts 210 karma points
    Feb 13, 2023 @ 22:49
    deep C
    0

    Disable ClientDependency in Production

    We are having a problem with ClientDependency and would like to disable it or remove it. We would rather have separate JS and CSS files in production.

    Further setting debug to true in web.config in production is a problem.

    The ClientDependency.config suggests there may be a way to enableCompositeFiles="false" but there is no example and various attempts have not worked.

    Does someone know of a way to disable ClientDependency?

    Thanks.

  • Yakov Lebski 591 posts 2345 karma points
    Feb 13, 2023 @ 23:39
    Yakov Lebski
    0

    in web.config change debug=true

    <compilation defaultLanguage="c#" debug="true" batch="true" targetFramework="4.7.2" numRecompilesBeforeAppRestart="50" />
    
  • deep C 20 posts 210 karma points
    Feb 14, 2023 @ 00:37
    deep C
    0

    Thank you for your response, but as I mentioned in my original post, we do not want debug="true" in the compilation section of the web.config on our production server.

    We would rather uninstall it or disable it completely if possible.

  • Yakov Lebski 591 posts 2345 karma points
    Feb 14, 2023 @ 04:09
    Yakov Lebski
    0

    sorry missed your initial requirement I think you can't uninstall it, Umbraco uses it internally,

    if it is on your front end you can just register css like in regular HTML

Please Sign in or register to post replies

Write your reply to:

Draft