Skip to content

Commit 4125909

Browse files
committed
Fix: (webpack.config.js) css-loader API change
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, and it seems to be in accordance with the current API as described at <https://github.com/webpack-contrib/css-loader/blob/c6f36cf91ac61743a70e81cfb077faa0f8730ebe/README.md#boolean>. Closes <#1507>.
1 parent 185a37a commit 4125909

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,9 @@ module.exports = {
159159
test: /\.scss$/,
160160
use: [
161161
{loader: MiniCssExtractPlugin.loader},
162-
{loader: "css-loader?-url"}, //url()-inlining turned off
162+
{loader: "css-loader"},
163+
{loader: "css-loader",
164+
options: { url: false }},
163165
{loader: "sass-loader",},
164166
],
165167
}],

0 commit comments

Comments
 (0)