Browse Source

add global entry and configure jquery

pull/2485/head
Leandro Roberto 7 years ago
parent
commit
a745521082
  1. 1
      sapl-frontend/src/global/main.js
  2. 4
      sapl-frontend/vue.config.js
  3. 2
      sapl/templates/base.html

1
sapl-frontend/src/global/main.js

@ -0,0 +1 @@
window.$ = window.jQuery = require("jquery");

4
sapl-frontend/vue.config.js

@ -45,8 +45,8 @@ module.exports = {
//.add(THEME_CUSTOM + '/src/main.js')
.end()
config.entry('hellow')
.add('./src/hellow/main.js')
config.entry('global')
.add('./src/global/main.js')
.end()
/*config

2
sapl/templates/base.html

@ -30,6 +30,7 @@
{# Scripts #}
{# modernizr must be in head (see http://modernizr.com/docs/#installing) #}
{% endcomment %}
{% render_bundle 'global' 'css' %}
{% render_bundle THEME_CUSTOM 'css' %}
{% endblock %}
@ -233,6 +234,7 @@
{% endif %}
{% block foot_js %}
{% render_bundle 'global' 'js' %}
{% render_bundle THEME_CUSTOM 'js' %}
{% comment "" %}

Loading…
Cancel
Save