Skip to content

Smidge Minifcation Doesn't Apply To Resources #14037

@EvilDrPorkChop

Description

@EvilDrPorkChop

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

11.2.2

Bug summary

I've set up Smidge as per the Umbraco documentation but I seem to be running into an issue with minification specifically where CSS & JS files don't have any minification applied to them regardless of the Bundling options used.

Bundling & rendering work absolutely fine and I can use the smidge helper to render out the Smidge processed URLs (no minification though).
The cache on disk is also building properly from what I can see. The same problem also applies to running it in memory mode.

I've tried changing all the settings within the Umbraco project, running smidge in Version, AppDomain & TimeStamp mode, running Umbraco in production mode, and building with the release flag but I have got the same result. I was able to reproduce this on two clean installs, one using the starter kit and one with a small amount of basic css/js.

Specifics

No response

Steps to reproduce

Clean Install + Starter Kit is enough to reproduce

Setup Smidge Middleware as per documentation: https://docs.umbraco.com/umbraco-cms/fundamentals/design/stylesheets-javascript#bundling-and-minification-for-javascript-and-css

Set bundling options to OptimizedNotComposite or OmptimizedAndComposite (neither minify)

Set runtime minification settings: https://docs.umbraco.com/umbraco-cms/reference/configuration/runtimeminificationsettings

Set Hosting Debug to false in appsettings

Build the site in Release mode

Check resource URLs in the HTML source code

Expected result / actual result

CSS/JS resources would be minified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    state/needs-more-infoWe don't have enough information to understand and/or give a good replystate/needs-reproductionWe can't reproduce the issuestatus/staleMarked as stale due to inactivitytype/bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions