Skip to content

Commit bcfcc85

Browse files
alphapapadrammock
andauthored
Fix: (webpack.config.js) css-loader API change (#1508)
* 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>. * dedup * restore version bump --------- Co-authored-by: Daniel McCloy <[email protected]>
1 parent 4fe4d7b commit bcfcc85

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"devDependencies": {
88
"axe-core": "^4.6.3",
99
"copy-webpack-plugin": "^11.0.0",
10-
"css-loader": "^3.4.2",
10+
"css-loader": "^6.8.1",
1111
"css-minimizer-webpack-plugin": "^4.2.2",
1212
"dedent": "^0.7.0",
1313
"html-webpack-plugin": "^4.3.0",

webpack.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ module.exports = {
159159
test: /\.scss$/,
160160
use: [
161161
{loader: MiniCssExtractPlugin.loader},
162-
{loader: "css-loader?-url"}, //url()-inlining turned off
162+
{loader: "css-loader", options: { url: false }},
163163
{loader: "sass-loader",},
164164
],
165165
}],

0 commit comments

Comments
 (0)