Skip to content

Commit 423b43f

Browse files
authored
Update plugin.template.js
1 parent d2156f7 commit 423b43f

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

nuxt/plugin.template.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
import Vue from 'vue'
2+
<% if (options.config) { %>
3+
import { setConfig } from 'bootstrap-vue/es/utils/config'
4+
5+
setConfig(<%= JSON.stringify(options.config, undefined, 2) %>)
6+
<% } %>
7+
28
<% if (options.componentPlugins.length || options.directivePlugins.length) { %><%=
39
options.componentPlugins.reduce((acc, p) => (acc += `import ${p[0]} from 'bootstrap-vue/es/components/${p[1]}'\n` ), '') %><%=
410
options.directivePlugins.reduce((acc, p) => (acc += `import ${p[0]} from 'bootstrap-vue/es/directives/${p[1]}'\n` ), '') %>

0 commit comments

Comments
 (0)