mirror of
https://github.com/jupyter/notebook.git
synced 2025-03-13 13:17:50 +08:00
Merge pull request #7035 from Carreau/use-map
Use require-js map instead of hacking path to our need. closes #7034
This commit is contained in:
commit
d8d55d0768
@ -30,7 +30,6 @@
|
||||
moment: 'components/moment/moment',
|
||||
codemirror: 'components/codemirror',
|
||||
termjs: 'components/term.js/src/term',
|
||||
contents: '{{ contents_js_source }}',
|
||||
},
|
||||
shim: {
|
||||
underscore: {
|
||||
@ -54,6 +53,14 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
require.config({
|
||||
map: {
|
||||
'*':{
|
||||
'contents': '{{ contents_js_source }}',
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
{% block meta %}
|
||||
|
Loading…
x
Reference in New Issue
Block a user