From 5125e2b398c1191680ffc6f78ec9898b90e0ee07 Mon Sep 17 00:00:00 2001 From: Manoj Vivek Date: Wed, 19 Oct 2022 18:34:44 +0530 Subject: [PATCH] Fixed the missing tailwind configs in prod config file --- .../configs/webpack.config.renderer.prod.ts | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/desktop-app-rewrite/.erb/configs/webpack.config.renderer.prod.ts b/desktop-app-rewrite/.erb/configs/webpack.config.renderer.prod.ts index 36bc6064..484d10f9 100644 --- a/desktop-app-rewrite/.erb/configs/webpack.config.renderer.prod.ts +++ b/desktop-app-rewrite/.erb/configs/webpack.config.renderer.prod.ts @@ -65,7 +65,19 @@ const configuration: webpack.Configuration = { }, { test: /\.s?(a|c)ss$/, - use: [MiniCssExtractPlugin.loader, 'css-loader', 'sass-loader'], + use: [ + MiniCssExtractPlugin.loader, + 'css-loader', + 'sass-loader', + { + loader: 'postcss-loader', + options: { + postcssOptions: { + plugins: [require('tailwindcss'), require('autoprefixer')], + }, + }, + }, + ], exclude: /\.module\.s?(c|a)ss$/, }, // Fonts @@ -78,6 +90,25 @@ const configuration: webpack.Configuration = { test: /\.(png|svg|jpg|jpeg|gif)$/i, type: 'asset/resource', }, + // SVG + { + test: /\.svg$/, + use: [ + { + loader: '@svgr/webpack', + options: { + prettier: false, + svgo: false, + svgoConfig: { + plugins: [{ removeViewBox: false }], + }, + titleProp: true, + ref: true, + }, + }, + 'file-loader', + ], + }, { test: /\.(mp3)$/i, use: [