From 8c396287ac871c1a5aaf0a4bc608df101f677d1d Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 25 Jul 2019 19:23:30 -0700 Subject: Improve assets management --- app/Console/CssCommand.php | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) (limited to 'app/Console/CssCommand.php') diff --git a/app/Console/CssCommand.php b/app/Console/CssCommand.php index a246a0db..0cb9a38a 100644 --- a/app/Console/CssCommand.php +++ b/app/Console/CssCommand.php @@ -87,11 +87,11 @@ class CssCommand extends BaseCommand ]; private $vendorFiles = [ - 'jquery-ui/jquery-ui.min.css', - 'jqueryui-timepicker-addon/jquery-ui-timepicker-addon.min.css', - 'select2/css/select2.min.css', - 'font-awesome/css/font-awesome.min.css', - 'c3/c3.min.css', + self::CSS_VENDOR_PATH.'jquery-ui/jquery-ui.min.css', + self::CSS_VENDOR_PATH.'jqueryui-timepicker-addon/jquery-ui-timepicker-addon.min.css', + self::CSS_VENDOR_PATH.'select2/css/select2.min.css', + self::CSS_VENDOR_PATH.'font-awesome/css/font-awesome.min.css', + self::CSS_VENDOR_PATH.'c3/c3.min.css', ]; protected function configure() @@ -106,7 +106,9 @@ class CssCommand extends BaseCommand { $this->minifyFiles(self::CSS_SRC_PATH, $this->appFiles, 'app.min.css'); $this->minifyFiles(self::CSS_SRC_PATH, $this->printFiles, 'print.min.css'); - $this->minifyFiles(self::CSS_VENDOR_PATH, $this->vendorFiles, 'vendor.min.css'); + + $vendorBundle = concat_files($this->vendorFiles); + file_put_contents('assets/css/vendor.min.css', $vendorBundle); } private function minifyFiles($folder, array $files, $destination) -- cgit v1.2.3