I have a Rails project where a newly added javascript file (plotly.min.js
) is causing rake assets:precompile
to hang indefinitely in production mode only. Since the problem is related to javascript compression, I would like to enable verbose logging for Uglifier. I can see that this is possible for the UgligyJS2 command line tool, but my question is how to enable this from my Rails app, preferable in an initializer or the like. I can solve the issue by changing my javascript compressor to closure-compiler
, but I would like to identify the problem with uglifier.
You need to override the sprockets logger in the initializer:
if Rails.env.production?
Rails.application.assets.logger = Logger.new($stdout)
# This sets the log level to debug
Rails.application.assets.logger.level = 0
end
I have the following state. state = { friends: { nickNames: ['Polly', 'P', 'Pau'], ... here more k:v }, } } And I want to update nickNames array with a value coming from an ...
I have the following state. state = { friends: { nickNames: ['Polly', 'P', 'Pau'], ... here more k:v }, } } And I want to update nickNames array with a value coming from an ...
I have setup ionic push for Android and IOS, the android version works great, but the IOS doesn't. I have setup the provisioning and certificate files on IOS and they seem to be fine. Also, the ...
I have setup ionic push for Android and IOS, the android version works great, but the IOS doesn't. I have setup the provisioning and certificate files on IOS and they seem to be fine. Also, the ...
Currently, I am facing one issue related to angularjs directive. I want to send outlet object from directive1 to directive2. Both directives having same controller scope. I tried with emitting event ...
Currently, I am facing one issue related to angularjs directive. I want to send outlet object from directive1 to directive2. Both directives having same controller scope. I tried with emitting event ...
In the following code, the $compile is not working. I have an item, I am adding this item to scope, so that I can compile this and get an html. $http({ method: 'GET', url :...
In the following code, the $compile is not working. I have an item, I am adding this item to scope, so that I can compile this and get an html. $http({ method: 'GET', url :...