Quantcast
Channel: bundletransformer Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 698

Commented Unassigned: Combine js files before Uglifying [125]

$
0
0
Is it possible?

currently it does the Minification/Uglyfying/Packing for every single file.

But the way I have structured my project, I have seperated everything into seperate files (simular to how you would organize c# classes etc.)

so I have 116 files being minified seperatly. and its not done corretly because it doesn't see all the references between the file.


--example could be.

__Game.js__
```
var Game = {
...
}
```

__Game.Objects.js__
```
Game.Objects = {
...
}
```

__Game.Objects.Player.js__
```
Game.Objects.Player = function() {
...
}
```

and so on.

But its actually a really "closed" project. and nothing break if I combined all 116 files in one single file, wrapped everything in an anonymous function and obfuscate it to oblivion. (this is really what i want it to do).
Comments: Hi Taritsyn, Thank you for replying, that correkt! Yes I noticed that packer was entirely ("decrypted"/unpacked) by the browser, so the source in Chrome was the original. :) In the meantime I've had several tries with Closure in Advanced mode. But even when the game runs without errors theres still alot of stuff that doesn't work because of property renames (that just don't cause errors). So it's a pretty heavy task to manage the Externs, and I'll never be sure that I've fixed everything. so I dropped Closure because of that. The perfect solution would be to actually manually choose what properties / variables to mangle. ofc. it would take some time. but then I would be sure that nothing that isn't supposed to, gets mangled. and I noticed they recently made "sort of" that feature with UglifyJS. where you use a regex to determine what properties to mangle. Ill have a look at Grunt/Gulp. Thank you

Viewing all articles
Browse latest Browse all 698

Trending Articles



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