Skip to content

Commit

Permalink
[FIX] Add path for shaka-player/ui to lessOptions in webpack.config
Browse files Browse the repository at this point in the history
fix warning in webpack build: Skipped data-uri embedding of images/xxx.svg because file not found
  • Loading branch information
fschoelzel committed Dec 17, 2024
1 parent 97e9adb commit 71a590c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Build/webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ module.exports = (env, argv) => {
lessOptions: {
// Don't adjust relative URLs in Less
relativeUrls: false,
paths: [path.resolve(__dirname, "node_modules/shaka-player/ui")],
},
sourceMap: true,
},
Expand Down Expand Up @@ -101,6 +102,7 @@ module.exports = (env, argv) => {
},
},
minimizer: [
// For webpack@5 you can use the `...` syntax to extend existing minimizers (i.e. `terser-webpack-plugin`), uncomment the next line
`...`,
new CssMinimizerPlugin(),
],
Expand Down

0 comments on commit 71a590c

Please sign in to comment.