问题描述
我正在尝试在我的 PCF 控件中使用 Bootstrap 图标,但我在显示图标时遇到了问题,因为未包含字体
包括 Bootstrap-Icons:npm i bootstrap-icons
产生以下 package.json
{
"name": "pcf-project","version": "1.0.0","description": "Project containing your PowerApps Component Framework (PCF) control.","homepage": ".","scripts": {
"build": "pcf-scripts build","clean": "pcf-scripts clean","rebuild": "pcf-scripts rebuild","start": "pcf-scripts start"
},"dependencies": {
"@types/node": "^10.12.18","@types/powerapps-component-framework": "^1.2.0","bootstrap": "^5.0.2","bootstrap-datepicker": "^1.9.0","bootstrap-icons": "^1.5.0","jquery": "^3.6.0"
},"devDependencies": {
"@types/bootstrap": "^5.0.16","@types/bootstrap-datepicker": "0.0.14","@types/jquery": "^3.5.5","pcf-scripts": "^1","pcf-start": "^1"
}
}
但是当我运行 npm start
时,我看不到图标。
如何让 npm build
命令包含 fonts
目录?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)