Skip to content

Commit

Permalink
get preact from script tag
Browse files Browse the repository at this point in the history
doesn't seem to like loading with require
  • Loading branch information
minrk committed Jan 4, 2017
1 parent 5f86737 commit c804c08
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 9 additions & 6 deletions notebook/templates/page.html
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@
{% endblock %}
<link rel="stylesheet" href="{{ base_url }}custom/custom.css" type="text/css" />
<script src="{{static_url("components/es6-promise/promise.min.js")}}" type="text/javascript" charset="utf-8"></script>
<script src="{{static_url("components/requirejs/require.js") }}" type="text/javascript" charset="utf-8"></script>
<script src="{{static_url('components/preact/dist/preact.min.js')}}" type="text/javascript"></script>
<script src="{{static_url('components/proptypes/index.js')}}" type="text/javascript"></script>
<script src="{{static_url('components/preact-compat/dist/preact-compat.min.js')}}" type="text/javascript"></script>
<script src="{{static_url('components/requirejs/require.js') }}" type="text/javascript" charset="utf-8"></script>
<script>
require.config({
{% if version_hash %}
Expand All @@ -39,11 +42,11 @@
termjs: 'components/xterm.js/dist/xterm',
typeahead: 'components/jquery-typeahead/dist/jquery.typeahead.min',
},
map: { // for backward compatibility
"*": {
"jqueryui": "jquery-ui",
}
},
map: { // for backward compatibility
"*": {
"jqueryui": "jquery-ui",
}
},
shim: {
typeahead: {
deps: ["jquery"],
Expand Down
2 changes: 1 addition & 1 deletion tools/build-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ var rjs_config = {
"jquery-ui": {
deps: ["jquery"],
exports: "$"
}
},
},

exclude: [
Expand Down

0 comments on commit c804c08

Please sign in to comment.