-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixes an error that is thrown when running Umbraco in production mode. In production mode, the assets used to be processed by smidge, causing a minification error.
- Loading branch information
1 parent
6066c3b
commit 59bbd19
Showing
3 changed files
with
32 additions
and
20 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/Infocaster.Umbraco.IcomoonPicker/Assets/IcomoonManifestFilter.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Reflection; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Umbraco.Cms.Core.Manifest; | ||
|
||
namespace Infocaster.Umbraco.IcomoonPicker.Assets | ||
{ | ||
internal class IcomoonManifestFilter | ||
: IManifestFilter | ||
{ | ||
public void Filter(List<PackageManifest> manifests) | ||
{ | ||
manifests.Add(new PackageManifest | ||
{ | ||
PackageName = "Icomoon icon picker", | ||
Version = Assembly.GetExecutingAssembly().GetName().Version?.ToString() ?? "1.0.0", | ||
Scripts = new[] | ||
{ | ||
Defaults_IcomoonPicker.PluginBasePath + "/script.iife.js" | ||
}, | ||
BundleOptions = BundleOptions.None | ||
}); | ||
} | ||
} | ||
} |
17 changes: 0 additions & 17 deletions
17
src/Infocaster.Umbraco.IcomoonPicker/Assets/ScriptAsset.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters