【发布时间】:2013-07-25 00:32:07
【问题描述】:
问题出在bootstrap sass,图标精灵路径是图像前的所有方式前缀'../',
'../../images/../images/glyphicons-halflings-white.png'
我希望喜欢这个“../images/../images/glyphicons-halflings-white.png”
grunt 文件配置:
options: {
sassDir: '<%= yeoman.app %>/styles',
cssDir: '.tmp/styles',
imagesDir: 'images',
javascriptsDir: '<%= yeoman.app %>/scripts',
fontsDir: '<%= yeoman.app %>/styles/fonts',
importPath: '<%= yeoman.app %>/components',
relativeAssets: true
},
如何配置 grunt 文件以删除前缀。
【问题讨论】: