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: Hello, bQvle! > However i still think it looks more minified then obsfucated. All minifiers of the Bundle Transformer will not give to you a full obfuscation. For these purposes need real obfuscators (e.g. [Javascript Obfuscator](http://www.javascriptobfuscator.com/) or [JScrambler](https://jscrambler.com/)). In most cases, obfuscation by using minifiers is shrinking of names of local variables. As I understand it, you've read the [“Hack proof your Javascript using javascript Obfuscation in ASP.NET applications”](http://www.codeproject.com/Articles/863295/Hack-proof-your-Javascript-using-javascript-Obfusc) article, and therefore believe, that the BundleTransformer.UglifyJs is an obfuscator. I have to say, that while I don't plan to implement in the BundleTransformer.UglifyJs support of `mangleProperties` options. A year ago, I spent a lot of time to implementation of externs support (very similar functionality) in the BundleTransformer.Closure module, but this opportunity is practically not used. Now I have no free time, and other open source projects have higher priority. > I really like the output of "Packer", but i just get way to many errors because it dosn't handle the multiline syntax very vell. Packer is a very old minifier, which has problems with modern JS code. Base62 encoding is not obfuscation, but compression (a kind of replacement of GZip or Deflate). Compressed thus code is easily decoded through the [JavaScript beautifier](http://jsbeautifier.org/). > so I have 116 files... It seems to me, that to process this amount of files is better to use [Grunt](http://gruntjs.com/) or [Gulp](http://gulpjs.com/). I collected useful materials in [“Additional reading and resources”](https://bundletransformer.codeplex.com/wikipage?title=Additional%20reading%20and%20resources#GruntAndGulp_Section) section of documentation, that will facilitate switch to Grunt or Gulp.

Viewing all articles
Browse latest Browse all 698

Trending Articles



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