如何在laravel中结合css/js
如果我有这个:
<link rel="stylesheet" href="css/style.css" type="text/css">
<link rel="stylesheet" href="css/styleol.css" type="text/css">
<link href="css/cupertino/jquery-ui-1.10.3.custom.css" rel="stylesheet">
例如,我怎样才能减少 HTTP 请求
<link rel="stylesheet" href="css/style.css;css/styleol.css;css/cupertino/jquery-ui-1.10.3.custom.css" type="text/css">
最佳答案
尝试使用这个包,你可以在你的 View 中这样调用它
// minify and combine all stylesheet files in given folder
{{ Minify::stylesheetDir('/css/') }}
关于javascript - 如何减少laravel中js/css上的HTTP请求,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24413534/