mirror of
https://github.com/discourse/discourse.git
synced 2024-12-15 12:33:45 +08:00
256d7a00e9
* Update sass-rails. * FIX: Tilt dependency has been removed from Ember::Handlebars::Template. * Update `DiscourseIIFE` to new Sprockets API. * `Rails.application.assets` returns `nil` in production. * Move sprockets-rails out of the assets group. * Pin ember-rails to 0.18.5 which works with Sprockets 3.x. * Update sprockets to 3.6.0. * Make `DiscourseSassCompiler` work with Sprockets 3. * Use `Sass::Rails::SassImporterGlobbing` instead of haxxing our own. * Moneky patch so that we don't add dependencies for our custom css. * FIX: Missing class. * Upgrade ember-handlebars-template. * FIX: require path needs to share the same root as the folder's path. * Bump discourse-qunit-rails. * Update ember-template-compiler.js to 1.12.2. * `prepend` is private in Ruby 2.0.0.
11 lines
304 B
Ruby
11 lines
304 B
Ruby
require 'discourse_iife'
|
|
|
|
Rails.application.config.assets.configure do |env|
|
|
env.register_preprocessor('application/javascript', DiscourseIIFE)
|
|
|
|
unless Rails.env.production? || ENV["DISABLE_EVAL"]
|
|
require 'source_url'
|
|
env.register_postprocessor('application/javascript', SourceURL)
|
|
end
|
|
end
|