mirror of
https://github.com/discourse/discourse.git
synced 2025-06-15 12:22:39 +08:00
shell to node to avoid high memory usage
This commit is contained in:
@ -11,7 +11,7 @@ task 'assets:precompile:before' do
|
|||||||
puts "Purging temp files"
|
puts "Purging temp files"
|
||||||
`rm -fr #{Rails.root}/tmp/cache`
|
`rm -fr #{Rails.root}/tmp/cache`
|
||||||
|
|
||||||
if Rails.configuration.assets.js_compressor == :uglifier && !`which uglifyjs`.empty? && ENV['FORCE_NODE_UGLIFY']
|
if Rails.configuration.assets.js_compressor == :uglifier && !`which uglifyjs`.empty? && !ENV['SKIP_NODE_UGLIFY']
|
||||||
$node_uglify = true
|
$node_uglify = true
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user