From 84ed899874f50b4e2f9847b2b5e25387f8811a24 Mon Sep 17 00:00:00 2001 From: Alex Andreev Date: Fri, 14 May 2021 11:17:40 +0300 Subject: [PATCH] Using tailwind with scss files also Signed-off-by: Alex Andreev --- webpack.renderer.ts | 19 +++---------------- 1 file changed, 3 insertions(+), 16 deletions(-) diff --git a/webpack.renderer.ts b/webpack.renderer.ts index 1c633374ea..c0ee67af8d 100755 --- a/webpack.renderer.ts +++ b/webpack.renderer.ts @@ -97,9 +97,8 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura } }, { - test: /\.css$/, + test: /\.s?css$/, use: [ - // https://webpack.js.org/plugins/mini-css-extract-plugin/ isDevelopment ? "style-loader" : MiniCssExtractPlugin.loader, { loader: "css-loader", @@ -107,24 +106,12 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura modules: { auto: true, mode: "local", - localIdentName: "[path][name]__[local]--[hash:base64:5]", + localIdentName: "[name]__[local]--[hash:base64:5]", } }, }, { loader: "postcss-loader" - } - ] - }, - { - test: /\.scss$/, - use: [ - isDevelopment ? "style-loader" : MiniCssExtractPlugin.loader, - { - loader: "css-loader", - options: { - sourceMap: isDevelopment - }, }, { loader: "sass-loader", @@ -137,7 +124,7 @@ export function webpackLensRenderer({ showVars = true } = {}): webpack.Configura ] }, } - }, + } ] }, ]