Skip to content

Commit

Permalink
fix: merge the player css files not explicitly requested
Browse files Browse the repository at this point in the history
  • Loading branch information
0xMurage committed Jan 3, 2025
1 parent 6d6adb8 commit f95352b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
]
)
]
};
Expand Down

0 comments on commit f95352b

Please sign in to comment.