# Future of Smidge

**URL:** <https://forum.umbraco.com/t/future-of-smidge/2847>\
**Category:** Questions\
**Created:** [April 15, 2025, 1:26pm UTC](https://forum.umbraco.com/t/future-of-smidge/2847 "2025-04-15T13:26:41Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![deanleigh](https://forum.umbraco.com/user_avatar/forum.umbraco.com/deanleigh/32/132_2.png) [@deanleigh](https://forum.umbraco.com/u/deanleigh)\
**Post date:** [April 15, 2025, 1:26pm UTC](https://forum.umbraco.com/t/future-of-smidge/2847/1 "2025-04-15T13:26:41Z")

</div>

For future versions are we still using Smidge for bundling and minification or taking the opportunity to use newer frameworks such as Vite?

---

<div class="post-metadata">

**Author:** ![Luuk](https://forum.umbraco.com/user_avatar/forum.umbraco.com/luuk/32/4446_2.png) [@Luuk](https://forum.umbraco.com/u/Luuk)\
**Post date:** [April 15, 2025, 1:32pm UTC](https://forum.umbraco.com/t/future-of-smidge/2847/2 "2025-04-15T13:32:05Z")

</div>

Smidge is not in Umbraco 15, so I guess we don’t use it anymore?

---

<div class="post-metadata">

**Author:** ![leekelleher](https://forum.umbraco.com/user_avatar/forum.umbraco.com/leekelleher/32/121_2.png) [@leekelleher](https://forum.umbraco.com/u/leekelleher)\
**Post date:** [April 16, 2025, 11:17am UTC](https://forum.umbraco.com/t/future-of-smidge/2847/3 "2025-04-16T11:17:55Z")

</div>

Since Umbraco v14, the backoffice uses Vite for bundling assets at build-time, (pre-bundled/minified in the release itself), there was no longer a need for bundling at runtime in the backoffice, and the dependency on the Smidge library was removed.

If you are using Smidge on your own frontend/website, then you can continue to do so by referencing the NuGet package directly.

> **[Smidge 4.5.1](https://www.nuget.org/packages/Smidge)**
>
> A lightweight library for runtime CSS and JavaScript file management, minification, combination & compression

---

<div class="post-metadata">

**Author:** ![deanleigh](https://forum.umbraco.com/user_avatar/forum.umbraco.com/deanleigh/32/132_2.png) [@deanleigh](https://forum.umbraco.com/u/deanleigh)\
**Post date:** [April 16, 2025, 11:48am UTC](https://forum.umbraco.com/t/future-of-smidge/2847/4 "2025-04-16T11:48:53Z")

</div>

Thanks @leekelleher that was my understanding too.  
Have you any community feedback of using Vite for front end minifying and bundling?  
I’m not sure of the pros and cons other than Smidge was designed for .Net

---

<div class="post-metadata">

**Author:** ![leekelleher](https://forum.umbraco.com/user_avatar/forum.umbraco.com/leekelleher/32/121_2.png) [@leekelleher](https://forum.umbraco.com/u/leekelleher)\
**Post date:** [April 16, 2025, 1:17pm UTC](https://forum.umbraco.com/t/future-of-smidge/2847/5 "2025-04-16T13:17:06Z")

</div>

I haven’t heard any feedback myself about the lack of runtime bundling in the new backoffice.  
As far as I’m aware, Smidge was direct .NET Core replacement for the ClientDependency library on .NET Framework (v4.5).

I’m curious if you have concerns about this?  
Whether that’s from a CMS core, or 3rd-party package perspective?

In terms of Vite, it does more than just bundling/minification, as it offers a local dev server + hot reload. For core development, we also use it to run the backoffice against a mock server, meaning that the client has no dependency on a .NET server. For faster dev iterations.

For 3rd-party packages, if you don’t want to use Vite, that’s all good - use whatever you like to bundle/minify… or not. Vanilla JS is perfectly fine in the new backoffice. 😁

---

<div class="post-metadata">

**Author:** ![deanleigh](https://forum.umbraco.com/user_avatar/forum.umbraco.com/deanleigh/32/132_2.png) [@deanleigh](https://forum.umbraco.com/u/deanleigh)\
**Post date:** [April 16, 2025, 2:08pm UTC](https://forum.umbraco.com/t/future-of-smidge/2847/6 "2025-04-16T14:08:33Z")

</div>

Sorry @leekelleher I meant have you heard of anyone using Vite for bundling specifically out of the box umbraco razor pages client side front end (not headless where you could also use it) css and js.  
Just asking out of curiosity as people will be using Vite for packages anyway it might not be a bad replacement for smidge for the website itself.

---

<div class="post-metadata">

**Author:** ![leekelleher](https://forum.umbraco.com/user_avatar/forum.umbraco.com/leekelleher/32/121_2.png) [@leekelleher](https://forum.umbraco.com/u/leekelleher)\
**Post date:** [April 16, 2025, 2:51pm UTC](https://forum.umbraco.com/t/future-of-smidge/2847/7 "2025-04-16T14:51:41Z")

</div>

Ah okay. No, I haven’t heard of any usage of Vite for frontend/websites.

I mean, I’d guess many folks do, but I’ve been out of the website implementation game for the past couple of years now… when I was building websites, it was all Grunt/Gulp to bundle/minify. I don’t recall seeing any Razor pages using Smidge to bundle assets.

---

<div class="post-metadata">

**Author:** ![deanleigh](https://forum.umbraco.com/user_avatar/forum.umbraco.com/deanleigh/32/132_2.png) [@deanleigh](https://forum.umbraco.com/u/deanleigh)\
**Post date:** [April 16, 2025, 3:09pm UTC](https://forum.umbraco.com/t/future-of-smidge/2847/8 "2025-04-16T15:09:12Z")

</div>

Hehe fair enough Lee 😁  
Smidge is pretty nice for bundling and minification to website JS and CSS.  
As for Gulp and Grunt I still have to use them on some of our old sites, not so much fun, especially when your getting node dependency errors.

---

<div class="post-metadata">

**Author:** ![MattW](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mattw/32/129_2.png) [@MattW](https://forum.umbraco.com/u/MattW)\
**Post date:** [April 17, 2025, 6:31am UTC](https://forum.umbraco.com/t/future-of-smidge/2847/9 "2025-04-17T06:31:47Z")

</div>

Teams I have worked in have been using vite/webpack for a few years for the builds, mainly because it suited them as frontend developers and it means no runtime overhead

nvm “solves” the node version issues

---

<div class="post-metadata">

**Author:** ![deanleigh](https://forum.umbraco.com/user_avatar/forum.umbraco.com/deanleigh/32/132_2.png) [@deanleigh](https://forum.umbraco.com/u/deanleigh)\
**Post date:** [April 17, 2025, 6:46am UTC](https://forum.umbraco.com/t/future-of-smidge/2847/10 "2025-04-17T06:46:33Z")

</div>

Thanks @MattW that’s what I was asking.  
I think I am going to give Vite a go for FE then.  
I was using NVM for years but @glombek convinced me to try Volta which so far so good

---

<div class="post-metadata">

**Author:** ![Luuk](https://forum.umbraco.com/user_avatar/forum.umbraco.com/luuk/32/4446_2.png) [@Luuk](https://forum.umbraco.com/u/Luuk)\
**Post date:** [April 17, 2025, 11:22am UTC](https://forum.umbraco.com/t/future-of-smidge/2847/11 "2025-04-17T11:22:06Z")

</div>

Just to add my two cents;

In our non-headless Umbraco sites, I was using Webpack for a long time for almost everything we needed, so compiling sass and bundling css, bundling javascript etc. Mind you, these were simple stylesheets ans scripts for the frontend of the site, not really an ‘application’ as such.

In that scenario I got so tired of all dependencies. If you want to compile css with webpack, you need a plugin specific for webpack that in turn references a plugin for actually compiling css. The downside was, that if the webpack css plugin wasn’t updated, you could sometimes have a dependency on an old sass/css compiler. So when we reworked everything, I wanted to stay as close to the basics as possible.

- I used NPM scripts instead of gulp or grunt
- I used the sass package for sass compiling. Since sass is from the actual developers of sass, you got the latest features a soon as they were ready.
- I used rollup for javascript compiling.

But in the context of an ‘application’ - like an Umbraco backend plugin - I really like Vite so far. I could have used webpack, but it’s so configuration heavy and complex.

---

<div class="post-metadata">

**Author:** ![mistyn8](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mistyn8/32/671_2.png) [@mistyn8](https://forum.umbraco.com/u/mistyn8)\
**Post date:** [April 19, 2025, 11:02am UTC](https://forum.umbraco.com/t/future-of-smidge/2847/12 "2025-04-19T11:02:46Z")

</div>

Seems to be a scenario here that is missing.. Eg Umbraco is a CMS that allows for scripts and css to be updated via the backoffice.  
So frontend were now missing a filewatch/rebuild to combine and minify if one of the scripts/css is changed by an editor in the backoffice?  
But maybe this is now down to the starter kit to provide something? (and it was just nice that the backoffice runtime minification engine could be used frontend)

Prob a different discussion here.. but over time UmbracoCMS has grown up, shall we say, to require this developer pipeline of needing to now have to build and deploy. When I first started using v4 the beauty of UmbracoCMS was that as a dev with very limited experience I could install umbraco on a server and just use the backoffice to do lots of backoffice things without requiring anything other than the backoffice and ftp. 🙂  
I wonder if we’ve lost that simplicity along the way?

---

<div class="post-metadata">

**Author:** ![Luuk](https://forum.umbraco.com/user_avatar/forum.umbraco.com/luuk/32/4446_2.png) [@Luuk](https://forum.umbraco.com/u/Luuk)\
**Post date:** [April 19, 2025, 11:38am UTC](https://forum.umbraco.com/t/future-of-smidge/2847/13 "2025-04-19T11:38:23Z")

</div>

By default, the Umbraco 15 template sets Umbraco to Production runtime mode, which doesn’t allow backoffice editing. Not sure what happends when you put in back to the Umbraco 13 default ‘BackofficeDevelopment’

---

<div class="post-metadata">

**Author:** ![mistyn8](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mistyn8/32/671_2.png) [@mistyn8](https://forum.umbraco.com/u/mistyn8)\
**Post date:** [April 19, 2025, 2:31pm UTC](https://forum.umbraco.com/t/future-of-smidge/2847/14 "2025-04-19T14:31:30Z")

</div>

not seeing this in a default install of v15+…

> <https://github.com/umbraco/Umbraco-CMS/blob/6455f96e51247649fc8d356e37d3e924cde899d4/src/Umbraco.Core/Configuration/Models/RuntimeSettings.cs#L18C1-L19C79>

```auto
    [DefaultValue(RuntimeMode.BackofficeDevelopment)]
    public RuntimeMode Mode { get; set; } = RuntimeMode.BackofficeDevelopment;

```

Also is there some override that detects localhost…  
As running under localhost with runtime:mode=production.. and I can still edit in the backoffice?

 ![This screenshot showcases the Umbraco CMS settings interface with the "Master" template code displayed alongside the "Live Environment" settings, illustrating the platform's template management and environment configuration options. (Captioned by AI)](https://forum.umbraco.com/uploads/default/original/2X/5/50895bd37c925e2b5e05c632efcaef4e32cb4447.png)

I’ve also tried `dotnet publish -c Release` and `dotnet www.dll --urls=https://localhost:44589/ --configuration Release --environment Production`  
with the recommended appsettings.Production.json as per the docs.. and can still edit in the backoffice ☹  
[Runtime Modes | Umbraco CMS](https://docs.umbraco.com/umbraco-cms/fundamentals/setup/server-setup/runtime-modes#production-mode)

---

<div class="post-metadata">

**Author:** ![Luuk](https://forum.umbraco.com/user_avatar/forum.umbraco.com/luuk/32/4446_2.png) [@Luuk](https://forum.umbraco.com/u/Luuk)\
**Post date:** [April 19, 2025, 2:36pm UTC](https://forum.umbraco.com/t/future-of-smidge/2847/15 "2025-04-19T14:36:45Z")

</div>

Yeah the default of Umbraco itself in code is BackOfficeDevelopment. But when you create a new project with the Umbraco template, runtime mode is as far as I know set to production in the appSetti gs.json. When set in production runtime mode you shouldnt be able to edit in the backoffice.

---

<div class="post-metadata">

**Author:** ![mistyn8](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mistyn8/32/671_2.png) [@mistyn8](https://forum.umbraco.com/u/mistyn8)\
**Post date:** [April 19, 2025, 2:40pm UTC](https://forum.umbraco.com/t/future-of-smidge/2847/16 "2025-04-19T14:40:19Z")

</div>

just spun up a vanilla 15.3.2 and 15.0.0 just to check and appsettings.json has no runtime:mode set.. and no appsettings.production.json is created.  
But as I say following the docs for adding production and running in release with environment as prouction, either in VS or via dotnet run www.dl… I’m not getting any restrictions in the backoffice 🤷 I’m obv missing something simple.

---

<div class="post-metadata">

**Author:** ![mistyn8](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mistyn8/32/671_2.png) [@mistyn8](https://forum.umbraco.com/u/mistyn8)\
**Post date:** [April 19, 2025, 2:50pm UTC](https://forum.umbraco.com/t/future-of-smidge/2847/17 "2025-04-19T14:50:01Z")

</div>

making the same apsetting changes in 13.5.2 and do get backoffice lockdown..

 ![The image shows the Umbraco content management system interface, displaying the code for an "Article" template under the "Settings" section, with a notification indicating that the content cannot be edited in production mode. (Captioned by AI)](https://forum.umbraco.com/uploads/default/original/2X/6/66f09ded6ed4f725c4b8b4802318ff1157197d2b.png)

but css/js aren’t locked down 😉 can happily update those.

 ![The Umbraco content management system displays the code for dropdownStyles.css, including CSS rules for h2, h3, and h4 elements, with a sidebar for site help, system information, and available actions. (Captioned by AI)](https://forum.umbraco.com/uploads/default/original/2X/6/6c431fbcf4407475467e8ac1ec06cc8c57bf4198.png)

---

<div class="post-metadata">

**Author:** ![mistyn8](https://forum.umbraco.com/user_avatar/forum.umbraco.com/mistyn8/32/671_2.png) [@mistyn8](https://forum.umbraco.com/u/mistyn8)\
**Post date:** [April 19, 2025, 3:01pm UTC](https://forum.umbraco.com/t/future-of-smidge/2847/18 "2025-04-19T15:01:17Z")

</div>

Bit more playing with 15.3.1 and seems like views/(aka templates) do fail to save the physical file but do add the DB entry and we don’t get the nice message like in v13 warning we are in production mode.. and actually can’t edit.

 ![An Umbraco administration panel shows an error that the master template was not found. (Captioned by AI)](https://forum.umbraco.com/uploads/default/original/2X/4/4cb1f6d2b8258eba54a5f2391d845b4473e6186c.png)  
 ![A screenshot shows the Umbraco back office with a "System Information" panel displaying technical details, while the "Templates" section is open, and the "master" template is selected. (Captioned by AI)](https://forum.umbraco.com/uploads/default/original/2X/7/7427428bc6a123f8276586370108781a7369c11b.png)

Is this just a not quite finished part to v15?  
and to finish up on my findings.. `RazorCompileOnBuild` doesn’t seem to be enforced in v15 like in v13?

```auto
<PropertyGroup>
  <!-- Remove RazorCompileOnBuild and RazorCompileOnPublish when not using ModelsMode InMemoryAuto -->
  <RazorCompileOnBuild>false</RazorCompileOnBuild>
  <RazorCompileOnPublish>false</RazorCompileOnPublish>
</PropertyGroup>

```

But as for css/scripts which was where this started.. they aren’t locked down in production mode as far as I can see.
