Skip to content

Commit

Permalink
Merge pull request #21 from vektor-inc/fix/config-file
Browse files Browse the repository at this point in the history
利用先でのconfigファイル(の例)だが、現状では実際に読み込まれるファイルと勘違いするため調整
  • Loading branch information
drill-lancer authored Jan 6, 2025
2 parents 36675e3 + 011283c commit 754a2ee
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions vk-css-optimize-config.php → config-sample.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
/**
* VK CSS Tree Shaking Config
*
* @package Katawara
* This is config sample file
*
* @package vektor-inc/vk-css-optimize
*/

global $prefix_customize_panel;
Expand All @@ -12,11 +14,7 @@
* Optimize CSS.
*/

if ( ! class_exists( 'VK_CSS_Optimize' ) ) {
require_once dirname( __FILE__ ) . '/package/class-vk-css-optimize.php';
}

function Katawara_css_tree_shaking_array( $vk_css_tree_shaking_array ){
function Katawara_css_tree_shaking_array( $vk_css_tree_shaking_array ) {
$Katawara_style_array = array(
'id' => 'katawara-design-style',
'url' => get_template_directory_uri() . '/assets/css/style.min.css',
Expand All @@ -27,9 +25,9 @@ function Katawara_css_tree_shaking_array( $vk_css_tree_shaking_array ){
return $vk_css_tree_shaking_array;
}
add_filter( 'vk_css_tree_shaking_array', 'Katawara_css_tree_shaking_array' );

/**
*
*
* CSS Tree Shaking Exclude
*
* @param array $inidata CSS Tree Shaking Exclude Paramator.
Expand Down

0 comments on commit 754a2ee

Please sign in to comment.