将popper.js插入electron bootstrap vue应用程序
我有一个包含Vue.js框架和BootstrapVue html css js框架的电子应用程序 BootstrapVue的安装已经完成,而且效率很高,但是如果您不安装第三方库popper.js(用于您的下拉式UI),则会缺少它 我试图安装这个库,但如何将它添加或注入我的BootstrapVue应用程序将popper.js插入electron bootstrap vue应用程序,electron,bootstrap-vue,popper.js,Electron,Bootstrap Vue,Popper.js,我有一个包含Vue.js框架和BootstrapVue html css js框架的电子应用程序 BootstrapVue的安装已经完成,而且效率很高,但是如果您不安装第三方库popper.js(用于您的下拉式UI),则会缺少它 我试图安装这个库,但如何将它添加或注入我的BootstrapVue应用程序 BootstrapVue网站的任何文档 我试图将标记插入index.html文件(但Electron告诉我语法错误' import Vue from 'vue' import App from
- BootstrapVue网站的任何文档
- 我试图将标记插入index.html文件(但Electron告诉我语法错误'
import Vue from 'vue' import App from './App.vue' import router from './router' import store from './store' import { BootstrapVue, IconsPlugin, BootstrapVueIcons } from 'bootstrap-vue' import { library } from '@fortawesome/fontawesome-svg-core' import { faUserSecret } from '@fortawesome/free-solid-svg-icons' import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome' import popper from 'popper.js' import "reflect-metadata" library.add(faUserSecret) Vue.component('font-awesome-icon', FontAwesomeIcon) Vue.config.productionTip = false Vue.use(BootstrapVue) Vue.use(IconsPlugin) Vue.use(BootstrapVueIcons) new Vue({ router, store, render: h => h(App) }).$mount('#app')
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width,initial-scale=1.0"> <link rel="icon" href="<%= BASE_URL %>favicon.ico"> <title><%= htmlWebpackPlugin.options.title %></title> </head> <body> <noscript> <strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong> </noscript> <div id="app"></div> <!-- built files will be auto injected --> <script src="./node_modules/popper.js/dist/popper-utils.min.js"></script> <script src="./node_modules/popper.js/dist/popper.min.js"></script> </body> </html>