Skip to content

Commit

Permalink
Remove shared assets from standard theme
Browse files Browse the repository at this point in the history
  • Loading branch information
claytoncollie committed Feb 19, 2025
1 parent aa27fa9 commit 10198c5
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 46 deletions.
1 change: 0 additions & 1 deletion themes/10up-theme/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
assets/js/vendor
assets/js/admin/vendor
assets/js/frontend/vendor
assets/js/shared/vendor
tests
dist
6 changes: 0 additions & 6 deletions themes/10up-theme/assets/css/shared/shared-style.css

This file was deleted.

2 changes: 0 additions & 2 deletions themes/10up-theme/assets/js/shared/shared.js

This file was deleted.

37 changes: 0 additions & 37 deletions themes/10up-theme/src/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,22 +65,6 @@ public function scripts() {
$this->get_asset_info( 'frontend', 'version' ),
true
);

/**
* Enqueuing shared.js is required to get css hot reloading working in the frontend
* If you're not shipping any shared js wrap this enqueue in a SCRIPT_DEBUG check.
*/

/*
* Uncoment this to use the shared.js file.
wp_enqueue_script(
'shared',
TENUP_THEME_TEMPLATE_URL . '/dist/js/shared.js',
$this->get_asset_info( 'shared', 'dependencies' ),
$this->get_asset_info( 'shared', 'version' ),
true
);
*/
}

/**
Expand All @@ -96,17 +80,6 @@ public function admin_scripts() {
$this->get_asset_info( 'admin', 'version' ),
true
);

/*
* Uncoment this to use the shared.js file.
wp_enqueue_script(
'shared',
TENUP_THEME_TEMPLATE_URL . '/dist/js/shared.js',
$this->get_asset_info( 'shared', 'dependencies' ),
$this->get_asset_info( 'shared', 'version' ),
true
);
*/
}

/**
Expand Down Expand Up @@ -136,16 +109,6 @@ public function admin_styles() {
[],
$this->get_asset_info( 'admin-style', 'version' )
);

/*
* Uncoment this to use the shared.css file.
wp_enqueue_style(
'shared-style',
TENUP_THEME_TEMPLATE_URL . '/dist/css/shared.css',
[],
$this->get_asset_info( 'shared', 'version' )
);
*/
}

/**
Expand Down

0 comments on commit 10198c5

Please sign in to comment.