FIX: Allow JS transpilation
This commit is contained in:
parent
661aebdc87
commit
6d1263812f
|
@ -15,6 +15,7 @@ a.loading-onebox {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// test
|
||||||
.onebox-result {
|
.onebox-result {
|
||||||
@include post-aside;
|
@include post-aside;
|
||||||
|
|
||||||
|
|
|
@ -134,7 +134,7 @@ class ThemeField < ActiveRecord::Base
|
||||||
filename, extension = name.split(".", 2)
|
filename, extension = name.split(".", 2)
|
||||||
begin
|
begin
|
||||||
case extension
|
case extension
|
||||||
when "js.es6"
|
when "js.es6", "js"
|
||||||
js_compiler.append_module(content, filename)
|
js_compiler.append_module(content, filename)
|
||||||
when "hbs"
|
when "hbs"
|
||||||
js_compiler.append_ember_template(filename.sub("discourse/templates/", ""), content)
|
js_compiler.append_ember_template(filename.sub("discourse/templates/", ""), content)
|
||||||
|
|
Loading…
Reference in New Issue