Skip to content

Commit

Permalink
fix: enqueue js paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sarahcssiqueira committed Dec 4, 2023
1 parent c419a89 commit 85d33b2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions inc/class-block-x.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ public function block_x_register() {
public function block_x_enqueues() {
wp_enqueue_script(
'block-x',
plugin_dir_url( __FILE__ ) . './blocks/block-x/build/index.js',
plugin_dir_url( __FILE__ ) . '../blocks/block-x/build/index.js',
[ 'wp-blocks', 'wp-i18n', 'wp-editor' ]
);

wp_enqueue_style(
'block-x',
plugin_dir_url( __FILE__ ) . '.style/style.css',
plugin_dir_url( __FILE__ ) . '..style/style.css',
[],
);
}
Expand Down
4 changes: 2 additions & 2 deletions inc/class-block-y.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ public function block_y_register() {
public function block_y_enqueues() {
wp_enqueue_script(
'block-y',
plugin_dir_url( __FILE__ ) . './blocks/block-y/build/index.js',
plugin_dir_url( __FILE__ ) . '../blocks/block-y/build/index.js',
[ 'wp-blocks', 'wp-i18n', 'wp-editor' ]
);

wp_enqueue_style(
'block-y',
plugin_dir_url( __FILE__ ) . '.style/style.css',
plugin_dir_url( __FILE__ ) . '..style/style.css',
[],
);
}
Expand Down

0 comments on commit 85d33b2

Please sign in to comment.