소스 검색

Test asset compliation

Angus McLeod 7 년 전
부모
커밋
52da1744a0
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      plugin.rb

+ 4 - 0
plugin.rb

@@ -11,6 +11,10 @@ config = Rails.application.config
 config.assets.paths << Rails.root.join('plugins', 'discourse-custom-wizard', 'assets', 'javascripts')
 config.assets.paths << Rails.root.join('plugins', 'discourse-custom-wizard', 'assets', 'stylesheets', 'wizard')
 
+if Rails.env.production?
+  config.assets.precompile += %w{ wizard-custom.js wizard-plugin.js stylesheets/wizard/wizard_custom.scss }
+end
+
 after_initialize do
   UserHistory.actions[:custom_wizard_step] = 1000