Skip to content

Commit

Permalink
removed sass stuff from webpack and libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorezz committed Nov 25, 2024
1 parent 1ede296 commit f0f7814
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 11 deletions.
3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
12 changes: 4 additions & 8 deletions webpack.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand All @@ -44,24 +46,18 @@ const config = (
],
module: {
rules: [
{
enforce: "pre",
test: /\.s(c)ss/,
loader: "import-glob-loader",
},
{
test: /\.(js|jsx|ts|tsx)$/,
exclude: /node_modules/,
use: "swc-loader",
},

{
test: /\.(sa|sc|c)ss$/,
test: /\.css$/,
use: [
mode !== "production" ? "style-loader" : MiniCssExtractPlugin.loader,
"css-loader",
"postcss-loader",
"sass-loader",
],
},

Expand Down

0 comments on commit f0f7814

Please sign in to comment.