Skip to content

Commit

Permalink
Fix: (webpack.config.js) css-loader API change
Browse files Browse the repository at this point in the history
The build was broken in
<https://github.com/pydata/pydata-sphinx-theme/commit/185a37aa36820f77bffa4c87a772092e9e7cc380>/<https://github.com/pydata/pydata-sphinx-theme/pull/1494>.

This change fixes the build, but may not be the best way to do so, as
I would guess it re-enables url()-inlining, which may be undesired.

Closes <#1507>.
  • Loading branch information
alphapapa committed Oct 12, 2023
1 parent 185a37a commit 4787cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ module.exports = {
test: /\.scss$/,
use: [
{loader: MiniCssExtractPlugin.loader},
{loader: "css-loader?-url"}, //url()-inlining turned off
{loader: "css-loader"},
{loader: "sass-loader",},
],
}],
Expand Down

0 comments on commit 4787cce

Please sign in to comment.