A platform for community discussion. Free, open, simple.
Add optional file to precompile list
Robin Ward72c3f36e5833
diff --git a/plugins/discourse-internet-explorer/plugin.rb b/plugins/discourse-internet-explorer/plugin.rbindex 5eff00501c4..eedd870fbdd 100644--- a/plugins/discourse-internet-explorer/plugin.rb+++ b/plugins/discourse-internet-explorer/plugin.rb@@ -15,8 +15,8 @@ register_asset 'stylesheets/ie.scss'# been activated so it can be uploaded to CDNs.DiscourseEvent.on(:after_plugin_activation) do ||polyfill_path = "#{Plugin::Instance.js_path}/#{self.directory_name}-optional.js"- puts polyfill_pathFileUtils.cp("#{Rails.root}/public/plugins/discourse-internet-explorer/js/ie.js", polyfill_path)+ Rails.configuration.assets.precompile << "plugins/discourse-internet-explorer-optional.js"endafter_initialize do