From b158a8a6ca0af8ceb77c2ef068589573e5a5c2ae Mon Sep 17 00:00:00 2001 From: Eltrac Koalar Date: Sun, 21 Aug 2022 14:00:29 +0800 Subject: =?UTF-8?q?:open=5Ffile=5Ffolder:=20Perf:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 其实就是 assets 目录太乱了看不下去了 --- libs/Matcha.php | 26 +++++++++++++++++++++----- 1 file changed, 21 insertions(+), 5 deletions(-) (limited to 'libs/Matcha.php') diff --git a/libs/Matcha.php b/libs/Matcha.php index 183313f..03459f2 100644 --- a/libs/Matcha.php +++ b/libs/Matcha.php @@ -23,7 +23,13 @@ class Matcha */ public static function linkCSS() { //要引入的 css 文件名 - $includes=array("normalize", "prism", "grid", "toaster", "style", "bigfoot"); + $includes=array( + "normalize", + "prism/prism", + "grid", + "toaster/toaster", + "matcha", + "bigfoot/bigfoot"); foreach($includes as $value){ echo '@font-face {font-family: 'iconfont';src: url('"; - Utils::indexTheme('assets/iconfont.woff2'); + Utils::indexTheme('assets/iconfont/iconfont.woff2'); echo "') format('woff2'),url('"; - Utils::indexTheme('assets/iconfont.woff'); + Utils::indexTheme('assets/iconfont/iconfont.woff'); echo "') format('woff'),url('"; - Utils::indexTheme('assets/iconfont.ttf'); + Utils::indexTheme('assets/iconfont/iconfont.ttf'); echo "') format('truetype');}"; } @@ -61,7 +67,17 @@ class Matcha */ public static function script() { //要引入的 js 文件名 - $includes=array("jquery.min","jquery.pjax.min","masonry.pkgd.min","smoothscroll","nprogress.min","prism","toaster","bigfoot","script"); + $includes=array( + "jquery/jquery.min", + "jquery/jquery.pjax.min", + "masonry/masonry.pkgd.min", + "smoothscroll/smoothscroll", + "nprogress/nprogress.min", + "prism/prism", + "toaster/toaster", + "bigfoot/bigfoot", + "matcha" + ); foreach($includes as $value){ echo '