Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.NET CLI tool #117

Open
zygimantas opened this issue Jul 27, 2020 · 3 comments
Open

.NET CLI tool #117

zygimantas opened this issue Jul 27, 2020 · 3 comments

Comments

@zygimantas
Copy link

Thank you for this great library. Really useful!
Have you considered wrapping it in a dotnet global/local tool so it can be used from CLI to easily compress static files?

@Taritsyn
Copy link
Owner

Hello, Zygimantas!

Even during the development of version 1.0, I had such plans. At some point, this was no longer necessary, because a BundlerMinifier library appeared. But then authors of the BundlerMinifier library began to use the NUglify instead of the WebMarkupMin.

In general, when there is enough free time, then I will deal with this issue.

@zygimantas
Copy link
Author

From my experience, what is related to your middleware functionality, BundlerMinifier is not a replacement for WebMarkupMin. I am just giving my feedback here. There is a gap of Razor Page minimization. All other files are handled by Webpack and plugins (bundling included). But HTML output is quite ugly when used with Razor Pages and the only way I've found to cleanup them is to use WebMarkupMin on origin server behind CDN.

@Taritsyn
Copy link
Owner

There is a gap of Razor Page minimization. All other files are handled by Webpack and plugins (bundling included). But HTML output is quite ugly when used with Razor Pages and the only way I've found to cleanup them is to use WebMarkupMin on origin server behind CDN.

If you want to minify a cshtml files, then try the Dean Hume's HTML Minifier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants