Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does Rails add semi-colon at the end of Javascript files and how to disable it?

Rails seems to add ; at the end of files ending with .js

How to disable it.

like image 217
amitamb Avatar asked Nov 01 '22 12:11

amitamb


1 Answers

It did so when I forgot to close all parentheses in my Javascript file properly. Check your script if all parentheses have a match.

like image 64
ToniTornado Avatar answered Nov 10 '22 00:11

ToniTornado