gpt4 book ai didi

Aurelia CLI 包括 Bootstrap Glyphicons

转载 作者:行者123 更新时间:2023-12-02 15:30:15 28 4
gpt4 key购买 nike

我正在尝试将 Bootstrap 包含在我的 Aurelia CLI 项目中,并且 CSS 和 JS 工作正常。

我遇到的唯一问题是字形需要加载字体文件。

我使用这个配置:

"dependencies": [
{
"name": "bootstrap",
"path": "../node_modules/bootstrap/dist",
"main": "js/bootstrap.min",
"deps": ["jquery"],
"exports": "$",
"resources": [
"css/bootstrap.min.css",
"fonts/glyphicons-halflings-regular.woff2"
]
}
]

但我收到包含此行的错误:

path: 'C:\Users\randy\Documents\form\node_modules\bootstrap\dist\fonts\glyphicons-halflings-regular.js'

因此,即使我包含 .woff2 文件,Aurelia 也会尝试将该文件作为 JS 文件导入。我该怎么做才能使这项工作成功? CSS 确实工作得很好。

最佳答案

看来这是当前版本的 Aurelia CLI 中的一个错误。我在这里为您提交了一个问题:https://github.com/aurelia/cli/issues/248

关于Aurelia CLI 包括 Bootstrap Glyphicons,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38658563/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com