Commit cbf3eebb authored by o's avatar o
Browse files

re-add uglyfier to fix prod

parent 761ec694
......@@ -36,3 +36,4 @@
/config/*.key
/nav_gen.html
/vendor/ruby
/vendor/bundle
......@@ -17,6 +17,10 @@ gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
gem 'rest-client'
gem 'zxcvbn-ruby', require: 'zxcvbn'
gem 'uglifier', '>= 1.3.0',
require: (ENV['RAILS_ENV'].to_s.downcase != 'production' ||
ENV['PRECOMPILE'].to_s == '1')
group :development do
gem 'listen', '>= 3.0.5', '< 3.2'
end
......@@ -49,6 +49,7 @@ GEM
domain_name (0.5.20190701)
unf (>= 0.0.5, < 1.0.0)
erubi (1.9.0)
execjs (2.7.0)
ffi (1.12.2)
globalid (0.4.2)
activesupport (>= 4.2.0)
......@@ -135,6 +136,8 @@ GEM
thread_safe (0.3.6)
tzinfo (1.2.7)
thread_safe (~> 0.1)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unf (0.1.4)
unf_ext
unf_ext (0.0.7.7)
......@@ -154,6 +157,7 @@ DEPENDENCIES
rest-client
rucaptcha
tzinfo-data
uglifier (>= 1.3.0)
zxcvbn-ruby
RUBY VERSION
......
//= require sha256.min
//= require proofofwork
//= require base64
//= require reloadStale
This diff is collapsed.
......@@ -9,9 +9,7 @@
<%= javascript_include_tag 'application' %>
<% if params[:controller] != 'logout' %>
<% ['sha256.min', 'proofofwork', 'base64', 'reloadStale'].each do |js| %>
<%= javascript_include_tag js %>
<% end %>
<%= javascript_include_tag 'login' %>
<% end %>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment