npm install bootstrap
<link rel="stylesheet" type="text/css" href="../node_modules/bootstrap/dist/css/bootstrap.css">
require('../node_modules/bootstrap');
electron 中使用require引入bootstrap,运行eclectron,报如下错误
Uncaught Error: Cannot find module 'popper.js'
解决办法:
npm install popper.js
然后再次运行electron就没有报错,可以正常使用bootstrap
FR:徐海涛(hunk Xu)
QQ技术交流群:386476712