I always leave my css and javascript code minified but never noticed the generated output. Well, I noticed that the last rule of a selector (in css) and the last function (in javascript) always misses the semicolon. For example, a simple rule in css:
div {
border: 2px solid red;
color: #fff;
}
I would stay:
div{border:2px solid red;color:#fff} /*perdendo o último ponto e vírgula */
Another example, in javascript:
$(function(){
var foo = true;
if(foo) {
foo = false;
bar();
}
});
Will generate:
$(function(){var foo=true;if(foo){foo=false;bar()}}) /* sem os últimos ponto e vírgula */
In case there is only one function within a block, it also loses the score.
if(foo){
bar();
}
Turns:
if(foo){bar()}
My question on the subject is: The absence of these multiple semicolons can influence in some way the code's functioning? I did tests on simple codes but I'm wondering if I can have problems with more complex work.