There is following code in one of our javascript files:
SizeUnits = {
byte: {u: 'B', U: 'byte'}
};
Then some empty asset files(which include the above javascript file) will be generated. Quoting the 'byte' will fix the issue:
SizeUnits = {
'byte': {u: 'B', U: 'byte'}
};
In my opinion, Jammit should report some errors while failing to generate the asset files instead of generating empty asset files.
By the way, I am using jammit 0.4.4.
There is following code in one of our javascript files: SizeUnits = { byte: {u: 'B', U: 'byte'} }; Then some empty asset files(which include the above javascript file) will be generated. Quoting the 'byte' will fix the issue: SizeUnits = { 'byte': {u: 'B', U: 'byte'} };
In my opinion, Jammit should report some errors while failing to generate the asset files instead of generating empty asset files. By the way, I am using jammit 0.4.4.