unoplatform / Uno.Wasm.Bootstrap

A simple nuget package to run C# code in a WASM-compatible browser
Other
370 stars 57 forks source link

Minification and obfuscation support for web assets #399

Open mmarinchenko opened 3 years ago

mmarinchenko commented 3 years ago

I use BundlerMinifier to minify my web assets in Release builds.

In Uno.Wasm.Bootstrap there are no differences between Debug and Release builds in web assets except for _monoconfig.js and _unoconfig.js which contain different flag values, file sets, etc.

Besides that some web assets are always minified (but not obfuscated - ex. dotnet.js) and most are not. I know there is response compression in place but it would still be great to have options to enable minification and/or obfuscation at least in release builds.

mmarinchenko commented 2 years ago

For those who may hit this issue, https://github.com/ligershark/WebOptimizer can be used as a workaround.

GitHub
GitHub - ligershark/WebOptimizer: A bundler and minifier for ASP.NET Core
A bundler and minifier for ASP.NET Core. Contribute to ligershark/WebOptimizer development by creating an account on GitHub.