diff options
author | Frédéric Guillot <fred@kanboard.net> | 2019-07-25 19:23:30 -0700 |
---|---|---|
committer | Frédéric Guillot <fred@kanboard.net> | 2019-07-25 19:23:30 -0700 |
commit | 8c396287ac871c1a5aaf0a4bc608df101f677d1d (patch) | |
tree | 4c96460e20c34c646595d0b3e09a00b086551534 /app/Console/CssCommand.php | |
parent | d42dd0705481bacf38c8d2a6c915398046ead014 (diff) |
Improve assets management
Diffstat (limited to 'app/Console/CssCommand.php')
-rw-r--r-- | app/Console/CssCommand.php | 14 |
1 files changed, 8 insertions, 6 deletions
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) |