Convert the Studio Library view to webpack

This commit is contained in:
Calen Pennington
2018-02-23 14:42:10 -05:00
parent d08e199f79
commit f166ee2592
3 changed files with 10 additions and 1 deletions

View File

@@ -0,0 +1,8 @@
define(
['js/factories/library', 'common/js/utils/page_factory', 'js/factories/base'],
function(LibraryFactory, invokePageFactory) {
'use strict';
invokePageFactory('LibraryFactory', LibraryFactory);
}
);

View File

@@ -37,7 +37,7 @@ from openedx.core.djangolib.markup import HTML, Text
showChildrenPreviews: ${context_library.show_children_previews | n, dump_js_escaped_json}
}
);
});
</%static:webpack>
</%block>
<%block name="content">

View File

@@ -33,6 +33,7 @@ module.exports = {
'js/pages/login': './cms/static/js/pages/login.js',
'js/pages/textbooks': './cms/static/js/pages/textbooks.js',
'js/pages/container': './cms/static/js/pages/container.js',
'js/pages/library': './cms/static/js/pages/library.js',
'js/sock': './cms/static/js/sock.js',
// LMS