mirror of
				https://github.com/lingble/chatwoot.git
				synced 2025-11-03 20:48:07 +00:00 
			
		
		
		
	Fixes https://github.com/chatwoot/chatwoot/issues/8436 Fixes https://github.com/chatwoot/chatwoot/issues/9767 Fixes https://github.com/chatwoot/chatwoot/issues/10156 Fixes https://github.com/chatwoot/chatwoot/issues/6031 Fixes https://github.com/chatwoot/chatwoot/issues/5696 Fixes https://github.com/chatwoot/chatwoot/issues/9250 Fixes https://github.com/chatwoot/chatwoot/issues/9762 --------- Co-authored-by: Pranav <pranavrajs@gmail.com> Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
		
			
				
	
	
		
			14 lines
		
	
	
		
			609 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
		
			609 B
		
	
	
	
		
			Ruby
		
	
	
	
	
	
# ref: https://github.com/rails/rails/issues/43906#issuecomment-1094380699
 | 
						|
# https://github.com/rails/rails/issues/43906#issuecomment-1099992310
 | 
						|
task before_assets_precompile: :environment do
 | 
						|
  # run a command which starts your packaging
 | 
						|
  system('pnpm install')
 | 
						|
  system('echo "-------------- Bulding SDK for Production --------------"')
 | 
						|
  system('pnpm run build:sdk')
 | 
						|
  system('echo "-------------- Bulding App for Production --------------"')
 | 
						|
end
 | 
						|
 | 
						|
# every time you execute 'rake assets:precompile'
 | 
						|
# run 'before_assets_precompile' first
 | 
						|
Rake::Task['assets:precompile'].enhance %w[before_assets_precompile]
 |