Quantcast
Channel: ajaxmin Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 683

Commented Issue: Important comments aren't always preserved [19416]

$
0
0
Looks like important comments need to be at the document level to be preserved:

```
Something.init(
/*!This is an important comment */
);
/*!This is an important comment too! */
function Dennis() {
/*!So is this */
}
```

Gets minified to:

```
function Dennis(){}Something.init();
/*!This is an important comment too! */
```
Comments: ** Comment from web user: drwestco **

Is there a workaround or alternative mechanism I can use? I'm trying to do a post-minify merge/insertion, and was hoping to use the important comments mechanism to mark the insertion point. Basically, I need to be able to mark a line in the original script and have that line's contents preserved in the output.


Viewing all articles
Browse latest Browse all 683

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>