Skip to content

Commit

Permalink
Updated imagelightbox file names
Browse files Browse the repository at this point in the history
  • Loading branch information
marekdedic committed Feb 26, 2024
1 parent 219b3c2 commit 38f0b68
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ gulp.task(

gulp.task('build:deps:npm:imagelightbox', () =>
gulp
.src('node_modules/imagelightbox/dist/imagelightbox.min.*')
.src([
'node_modules/imagelightbox/dist/imagelightbox.css',
'node_modules/imagelightbox/dist/imagelightbox.umd.cjs',
])
.pipe(gulp.dest('dist/bundled/'))
);

Expand Down
4 changes: 2 additions & 2 deletions src/php/frontend/class-shortcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ public static function register_scripts_styles() {

Script_And_Style_Helpers::register_script(
'sgdg_imagelightbox_script',
'bundled/imagelightbox.min.js',
'bundled/imagelightbox.umd.cjs',
array( 'jquery' )
);
Script_And_Style_Helpers::register_style( 'sgdg_imagelightbox_style', 'bundled/imagelightbox.min.css' );
Script_And_Style_Helpers::register_style( 'sgdg_imagelightbox_style', 'bundled/imagelightbox.css' );
Script_And_Style_Helpers::register_script(
'sgdg_imagesloaded',
'bundled/imagesloaded.pkgd.min.js',
Expand Down

0 comments on commit 38f0b68

Please sign in to comment.