mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 12:38:54 +08:00
FIX: Allow JS transpilation
This commit is contained in:
parent
661aebdc87
commit
6d1263812f
@ -15,6 +15,7 @@ a.loading-onebox {
|
||||
}
|
||||
}
|
||||
|
||||
// test
|
||||
.onebox-result {
|
||||
@include post-aside;
|
||||
|
||||
|
@ -134,7 +134,7 @@ class ThemeField < ActiveRecord::Base
|
||||
filename, extension = name.split(".", 2)
|
||||
begin
|
||||
case extension
|
||||
when "js.es6"
|
||||
when "js.es6", "js"
|
||||
js_compiler.append_module(content, filename)
|
||||
when "hbs"
|
||||
js_compiler.append_ember_template(filename.sub("discourse/templates/", ""), content)
|
||||
|
Loading…
x
Reference in New Issue
Block a user