1
Someone knows how to minify js and css files at runtime. For example : In the HTML file, the call to the Javascript file looks like this :
<script src="~/Content/Site/js/funcoes.js"></script>
I would like to generate a minified file dese script at the time of application execution, this would be possible ?
When you say "the time of implementation of the" you mean "the moment the file is requested from the server"? What language do you have on the server?
– Sergio
You need to do this directly in the server environment. If you are using PHP, here is a function to minify css, js and html: https://gist.github.com/tovic/d7b310dea3b33e4732c0
– Lucas Caires
Yes, in case I will upload html calling the files normally. and I want the server to be minified.
– Ricardo Mendes