From f95352b9f5ffe48efa3f273db4740da7a355f092 Mon Sep 17 00:00:00 2001 From: Murage <25152892+0xMurage@users.noreply.github.com> Date: Fri, 3 Jan 2025 03:40:35 +0300 Subject: [PATCH] fix: merge the player css files not explicitly requested --- webpack.common.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/webpack.common.js b/webpack.common.js index 1e409e3..14ecc92 100644 --- a/webpack.common.js +++ b/webpack.common.js @@ -56,13 +56,20 @@ module.exports = { plugins: [ new CopyPlugin({ patterns: [ - { from: 'vendor/h5p/styles', to: 'styles' }, + { from: 'vendor/h5p/styles/font-open-sans.css', to: 'styles' }, { from: 'vendor/h5p/fonts', to: 'fonts' }, ] }), CssMergePlugin( 'styles/h5p.css', - ['vendor/h5p/styles/h5p.css', 'vendor/h5p/styles/h5p-tooltip.css'] // files required by h5p player + [ + // styles files required by h5p player and not explicitly loaded + 'vendor/h5p/styles/h5p.css', + 'vendor/h5p/styles/h5p-confirmation-dialog.css', + 'vendor/h5p/styles/h5p-core-button.css', + 'vendor/h5p/styles/h5p-tooltip.css', + 'vendor/h5p/styles/h5p-table.css', + ] ) ] };