1

i'm including external font css (Google Font) on my css file using @import

styles.css

/* Feel free to use @import. r.js will merge them, when building */
@import "../vendor/bootstrap/css/bootstrap.css"; //this is included
@import url(http://fonts.googleapis.com/css?family=Chewy); //would this be included?
...

would r.js include the remote file and optimize it? r.js doesn't have a full documentation on its switches and settings or I am just missing something? or i just reconfigure my build to include the remote/cdn file?

4

1 回答 1

1

不,截至2.1.5我得到这个输出:

优化 (standard.keepLines) CSS 文件:/.../style/style-all.css
/.../style/style-all.css
无法内联 css 导入,跳过:https://fonts.googleapis.com/css?family=Chewy

分析github 上的源代码表明它只支持相对路径。

于 2013-05-06T10:21:48.137 回答