Skip to content

Commit b756e07

Browse files
committed
fix: the renamed css and js files when including them in the site. Related to commit 81655d2.
1 parent d832f2a commit b756e07

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/setup.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
add_action(
1515
'wp_enqueue_scripts',
1616
function () {
17-
wp_enqueue_style('sage/main.css', asset_path('styles/main.css'), false, null);
18-
wp_enqueue_script('sage/main.js', asset_path('scripts/main.js'), ['jquery'], null, true);
17+
wp_enqueue_style('sage/main.css', asset_path('css/main.css'), false, null);
18+
wp_enqueue_script('sage/main.js', asset_path('js/main.js'), ['jquery'], null, true);
1919

2020
if (is_front_page()) {
21-
wp_enqueue_script('sage/front-page.js', asset_path('scripts/front-page.js'), ['jquery'], null, true);
21+
wp_enqueue_script('sage/front-page.js', asset_path('js/front-page.js'), ['jquery'], null, true);
2222
}
2323

2424
// Move Wordpress jQuery to footer
@@ -35,7 +35,7 @@ function () {
3535
add_action(
3636
'wp_head',
3737
function () {
38-
$critical = @realpath(asset_path('styles/critical.css'));
38+
$critical = @realpath(asset_path('css/critical.css'));
3939
if (file_exists($critical)) {
4040
echo '<style>' . @file_get_contents($critical) . '</style>';
4141
}
@@ -128,7 +128,7 @@ function () {
128128
* Use main stylesheet for visual editor
129129
* @see resources/assets/styles/layouts/_tinymce.scss
130130
*/
131-
add_editor_style(asset_path('styles/main.css'));
131+
add_editor_style(asset_path('css/main.css'));
132132
},
133133
20
134134
);

0 commit comments

Comments
 (0)