Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
How to use Smidge in Umbraco 13? I tried this code but it's not working.
SmidgeHelper.RequiresCss("~/css/components/navbar.min.css");
That bit registers the file you want with Smidge,
But you will also need to tell Smidge where to output it.
I think the code is something like
SmidgeHelper.RenderCssHere()
Use this below code in your program.cs
program.cs
app.UseSmidge(bundles => { bundles.CreateCss("maincss", "~/css/main.css", "~/css/RTE Style.css"); bundles.CreateJs("mainjs", "~/scripts/js/main.js", "~/scripts/js/vendors/core.js", "~/scripts/devscripts.js"); });
Then use below code to render in your html
<link rel="stylesheet" href="maincss" /> <script src="mainjs" ></script>
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" button below.
Continue discussion
How to use Smidge in Umbraco 13?
How to use Smidge in Umbraco 13? I tried this code but it's not working.
That bit registers the file you want with Smidge,
But you will also need to tell Smidge where to output it.
I think the code is something like
SmidgeHelper.RenderCssHere()
Use this below code in your
program.cs
Then use below code to render in your html
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" button below.
Continue discussion