diff --git a/package.json b/package.json index 52b0b3ff..00440e0a 100644 --- a/package.json +++ b/package.json @@ -56,7 +56,6 @@ "eslint-plugin-react": "^7.32.2", "gh-pages": "^5.0.0", "html-webpack-plugin": "^5.3.1", - "import-glob-loader": "^1.1.0", "jest": "^26.6.3", "mini-css-extract-plugin": "^2.7.6", "patch-package": "^6.4.7", @@ -65,8 +64,6 @@ "process": "^0.11.10", "react-test-renderer": "^17.0.2", "release-it": "^17.4.0", - "sass": "^1.63.6", - "sass-loader": "^13.3.2", "style-loader": "^3.3.3", "swc-loader": "^0.2.3", "ts-node": "^10.9.1", diff --git a/webpack.config.ts b/webpack.config.ts index 1b7e00de..04c9d339 100644 --- a/webpack.config.ts +++ b/webpack.config.ts @@ -20,7 +20,9 @@ const config = ( VALIDATOR_URL: JSON.stringify(process.env.VALIDATOR_URL), VALIDATOR_REMOTE_URL: JSON.stringify(process.env.VALIDATOR_REMOTE_URL), FALLBACK_LANGUAGE: JSON.stringify(process.env.FALLBACK_LANGUAGE), - DEFAULT_COUNTRY_SECTIONS: JSON.stringify(process.env.DEFAULT_COUNTRY_SECTIONS), + DEFAULT_COUNTRY_SECTIONS: JSON.stringify( + process.env.DEFAULT_COUNTRY_SECTIONS + ), }, }), new HtmlWebpackPlugin({ @@ -44,11 +46,6 @@ const config = ( ], module: { rules: [ - { - enforce: "pre", - test: /\.s(c)ss/, - loader: "import-glob-loader", - }, { test: /\.(js|jsx|ts|tsx)$/, exclude: /node_modules/, @@ -56,12 +53,11 @@ const config = ( }, { - test: /\.(sa|sc|c)ss$/, + test: /\.css$/, use: [ mode !== "production" ? "style-loader" : MiniCssExtractPlugin.loader, "css-loader", "postcss-loader", - "sass-loader", ], },