我对wro4j有点新,所以我会尽量解释,不要犹豫地询问更多的信息,我会在必要的时候更新帖子。
我试图在wro4j (版本1.8.0)生成的单个依赖项中使用引导和角度。
这是我的wro.xml:
<groups xmlns="http://www.isdc.ro/wro">
<group name="angular-bootstrap">
<css>webjar:bootstrap/3.3.7-1/css/bootstrap.css</css>
<css>file:${project.basedir}/src/main/wro/main.less</css>
<js>webjar:jquery/3.1.0/jquery.js</js>
<js>webjar:angularjs/1.5.8/angular.js</js>
<js>webjar:angularjs/1.5.8/angular-route.js</js>
<js>webjar:angularjs/1.5.8/angular-resource.js</js>
<js>webjar:angular-ui-router/0.2.18/angular-ui-router.js</js>
<js>webjar:bootstrap/3.3.7-1/js/bootstrap.js</js>
</group>
</groups>我的main.less:
@brand-primary: #de8579;我的wro.properties:
preProcessors=lessCssImport
postProcessors=less4j,jsMin我的问题是,当我试图使用引导程序的图标时:我一直得到这些资源上的404错误:
GET http://localhost:8080/fonts/glyphicons-halflings-regular.woff2
GET http://localhost:8080/fonts/glyphicons-halflings-regular.woff
GET http://localhost:8080/fonts/glyphicons-halflings-regular.ttf 我的静态资源文件夹包含以下文件夹
resources
/-static
/-css
/- custom.css
/-fonts (empty)
/-img
/- brandimage.png
/-js
/- custom.js
/-views
/- views of application (non relevant)在目标文件夹中,我有以下树丛:
classes
/-static
/-css
/- custom.css
/- angular-boostrap.css
/-img
/- brandimage.png
/-js
/- custom.js
/- angular-boostrap.js
/-views
/- views of application (non relevant)但引导程序的字体/图标都没有生成.我错过了什么?
发布于 2016-10-05 12:50:40
我通过导入引导3.3.7中缺少的资源并将它们添加到我的资源/静态/字体文件夹中来解决这个问题。
https://stackoverflow.com/questions/39873393
复制相似问题