mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
Using tailwind with scss files also
Signed-off-by: Alex Andreev <alex.andreev.email@gmail.com>
This commit is contained in:
parent
0facf5be66
commit
84ed899874
@ -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
|
||||
]
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
]
|
||||
},
|
||||
]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user