-
Notifications
You must be signed in to change notification settings - Fork 522
JS\CSS文件合并与文件压缩
Ethan Lai edited this page Mar 28, 2014
·
1 revision
// @koala-prepend "jquery.js"
// jQuery is ready
$(function(){
// TODO
})
// @koala-prepend "jquery.js"
// @koala-append "other.js"
$(function(){
// TODO
})
// the content of other.js will be combine into here
@import url("reset.css");
@import "./libs/jquery.ui/jquery.ui.css";
/*For this page*/
body {}
默认不开启这个功能,需选中Combine Import
选项;开启后将合并import文件代码至源文件。
css中的图片url可转换为base编码,启用规则为在image url末尾增加参数"?base64".
(注意base64转换仅限本地图片)
Source code:
#test {
background: url(../img/logo.png?base64) no-repeat;
}
Output Code:
#test {
background: url(data:image/png;base64,R0lGODlhEAAQAMQAAORHHOVS.....) no-repeat;
}
/* START Navbar style+layout changed 260422*/ .navbar-collapse ul.nav.navbar-nav > li { width: 150px; border-bottom: 2px solid #b2b2b2; height: 70px; } .navbar-collapse ul.nav.navbar-nav > li.active { height: 70px; border-bottom: 3px solid #257FA6 !important; } .navbar-collapse ul.nav li a { font-size: 16px !important; font-family: 'Open Sans' !important; color: #2c2c2c !important; height: 54px; border-right: 2px solid #b2b2b2; text-align: center; padding: 10px 18px !impo