moved Angular routes to separate module; load Webpack bundle before other main scripts
This commit is contained in:
parent
8dc9cf21d7
commit
615e233671
14 changed files with 186 additions and 167 deletions
|
@ -166,6 +166,9 @@ def render_page_template(name, route_data=None, **kwargs):
|
|||
file_lists = [library_styles, main_styles, library_scripts, main_scripts]
|
||||
for file_list in file_lists:
|
||||
file_list.sort()
|
||||
# Ensure Webpack bundle is first script on page
|
||||
if 'js/build/bundle.js' in main_scripts: main_scripts.remove('js/build/bundle.js')
|
||||
main_scripts = ['js/build/bundle.js'] + main_scripts
|
||||
else:
|
||||
library_styles = []
|
||||
main_styles = ['dist/quay-frontend.css']
|
||||
|
|
Reference in a new issue