Change Stylesheet links to point to minified files.
This commit is contained in:
parent
73542f286e
commit
8cc4670134
@ -572,7 +572,7 @@ function clean_copy_assets($path){
|
|||||||
} else {
|
} else {
|
||||||
$unnecessaryJs = array('./js/less.min.js');
|
$unnecessaryJs = array('./js/less.min.js');
|
||||||
@mkdir($path.'/css');
|
@mkdir($path.'/css');
|
||||||
@copy('./css/daux-'.$options['theme'].'.css', $path.'/css/daux-'.$options['theme'].'.css');
|
@copy('./css/daux-'.$options['theme'].'.min.css', $path.'/css/daux-'.$options['theme'].'.min.css');
|
||||||
$unnecessaryImgs = array_diff($unnecessaryImgs, array('./img/favicon-'.$options['theme'].'.png'));
|
$unnecessaryImgs = array_diff($unnecessaryImgs, array('./img/favicon-'.$options['theme'].'.png'));
|
||||||
}
|
}
|
||||||
copy_recursive('./img', $path.'/', $unnecessaryImgs);
|
copy_recursive('./img', $path.'/', $unnecessaryImgs);
|
||||||
|
@ -21,7 +21,7 @@
|
|||||||
</style>
|
</style>
|
||||||
<script src="<?php echo $base_url ?>/js/less.min.js"></script>
|
<script src="<?php echo $base_url ?>/js/less.min.js"></script>
|
||||||
<?php } else { ?>
|
<?php } else { ?>
|
||||||
<link rel="stylesheet" href="<?php echo $base_url ?>/css/daux-<?php echo $options['theme'];?>.css">
|
<link rel="stylesheet" href="<?php echo $base_url ?>/css/daux-<?php echo $options['theme'];?>.min.css">
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<link rel="stylesheet" href="<?php echo $base_url ?>/css/full-doc.css">
|
<link rel="stylesheet" href="<?php echo $base_url ?>/css/full-doc.css">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user