Questions tagged [uglifier]

Uglifier change the source code of a program without changing their semantics, to prevent reverse engineering.

Uglifier or Minifier are tools which change the source code of a program in a way, that the semantic is unchanged.

Uglifier or minifier are normally used with scripting languages like JavaScript, where the source code must be provided, but the goal is:

  • to minimize the needed bandwidth for transmission
  • To obfuscate the source code so it is less likely to be reverse engineered
38 questions
0
votes
2 answers

Heroku push - ExecJS::RuntimeError: SyntaxError: Name expected

I am encountering the following error when pushing to Heroku. Was working fine the other day. No major configuration changes on the commit I'm trying to push. I'm stumped at how to troubleshoot this. The Rails 5.1 application uses the following…
Winston Kotzan
  • 1,979
  • 20
  • 25
0
votes
1 answer

ruby on rails uglifier error on server start up WINDOWS 10

so im new to this and im trying to star my localhost server for rails v5 on win10 i have looked around and cant figer it out i put this code in` bundler exec rails server then i get this …
0
votes
0 answers

Comment breaks css rule

I have a rails app and I am using bootstrap and some other vendors js and css. Everything was is fine on development but when I moved it to production (heroku) some css rules are being ignored. This is one of the rules that are being ignored: @media…
Nicos Karalis
  • 3,724
  • 4
  • 33
  • 62
0
votes
1 answer

Rails server fails because of uglifier gem

When I try to load rails server, I get this error: /home/jared/.rvm/gems/ruby-head/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'.…
0
votes
1 answer

Rails: uglifier gem won't load

I am getting an error when trying to load server and migrate databases in rails. My uglifier gem wont load and i need it to run devise properly. This is the error i get: There was an error while trying to load the gem 'uglifier'.…
Sony Claba
  • 97
  • 1
  • 2
  • 4
0
votes
1 answer

Uglifying JavaScript - Further optimisation

This might seem like a stupid question but is there some reason why Uglifiers don't uglify references to external functions using a pointer? An example: A file I'm working on has multiple calls to _gaq.push(). I've squished this by adding to the top…
Craig Poole
  • 740
  • 8
  • 19
0
votes
3 answers

point of java encapsulation

I'm trying to figure why people say this is a good way to prevent access to your class file that you don't want but can't I just use reflection to access the class? Isn't obfuscation to prevent unauthorized access better because no one knows what…
Joe
  • 337
  • 2
  • 16
0
votes
1 answer

Duplicate "function(){}.call(this)" in Uglified JS

My uglified (using rails uglifier) javascript ends like this: /* ... actual code */}.call(this),function(){}.call(this),function(){}.call(this),function(){}.call(this),function(){}.call(this),function(){}.call(this); Or for…
jcuenod
  • 55,835
  • 14
  • 65
  • 102
1 2
3