grails-plugins/grails-resources — Issue #8: JS Bundler - bundling js files without trailing semicolon cause js error
Author: groovydev
Created: 2011-10-17 15:04:17+00:00
State: open

I'm working on twitter-bootstrap plugin. I notice a problem with some javascript files which has no trailing semicolon at the end. It works fine when browser loads files separately, but when bundled to one file produce not valid javascript code.
It can be handled by adding semicolon (;) at the end of every js file to be included or bundler process can add semicolon. Second solution I think is cleaner, because doesn't require to change js files. What do you think about it?

Thanks,
Karol