From bcfcc85ff682a4f6c795737a56079338cf5da788 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Tue, 17 Oct 2023 14:45:56 -0500 Subject: [PATCH] Fix: (webpack.config.js) css-loader API change (#1508) * Fix: (webpack.config.js) css-loader API change The build was broken in /. This change fixes the build, and it seems to be in accordance with the current API as described at . Closes . * dedup * restore version bump --------- Co-authored-by: Daniel McCloy --- package.json | 2 +- webpack.config.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index f992c9a7a..e767243ef 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "devDependencies": { "axe-core": "^4.6.3", "copy-webpack-plugin": "^11.0.0", - "css-loader": "^3.4.2", + "css-loader": "^6.8.1", "css-minimizer-webpack-plugin": "^4.2.2", "dedent": "^0.7.0", "html-webpack-plugin": "^4.3.0", diff --git a/webpack.config.js b/webpack.config.js index e11951d1a..ff56828ec 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -159,7 +159,7 @@ module.exports = { test: /\.scss$/, use: [ {loader: MiniCssExtractPlugin.loader}, - {loader: "css-loader?-url"}, //url()-inlining turned off + {loader: "css-loader", options: { url: false }}, {loader: "sass-loader",}, ], }],