Hi,
When you bundle two files that the first one ending with one-line comment (//) and the second starts with multiline comment (/* */) the minifier throws an error.
For example
a.js
```
function foo() {
// ...
} // This is the last line comment.
```
b.js
```
/**
* Some copyrights
*/
function bar() {
// ...
}
```
The minification will firstly concat the files without newlines so the result will be
```
function foo() {
// ...
} // This is the last line comment. /**
* Copyrights
*/
function bar() {
// ...
}
```
Which, as can be seen, contains syntax error because of the comment prefix.
Since it's my first reported bug hope the format is OK and if there's any other information I'd provide - please say :)
Regards.
Comments: This issue is tracked at http://aspnetoptimization.codeplex.com/workitem/71.
When you bundle two files that the first one ending with one-line comment (//) and the second starts with multiline comment (/* */) the minifier throws an error.
For example
a.js
```
function foo() {
// ...
} // This is the last line comment.
```
b.js
```
/**
* Some copyrights
*/
function bar() {
// ...
}
```
The minification will firstly concat the files without newlines so the result will be
```
function foo() {
// ...
} // This is the last line comment. /**
* Copyrights
*/
function bar() {
// ...
}
```
Which, as can be seen, contains syntax error because of the comment prefix.
Since it's my first reported bug hope the format is OK and if there's any other information I'd provide - please say :)
Regards.
Comments: This issue is tracked at http://aspnetoptimization.codeplex.com/workitem/71.