Commit a743a1cc by Jacky Committed by GitHub

Toolkit: support sass style for plugins (#22235)

parent 90541d30
......@@ -4,7 +4,7 @@ import { getPluginId } from '../utils/getPluginId';
const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const supportedExtensions = ['css', 'scss', 'less'];
const supportedExtensions = ['css', 'scss', 'less', 'sass'];
const getStylesheetPaths = (root: string = process.cwd()) => {
return [`${root}/src/styles/light`, `${root}/src/styles/dark`];
......@@ -110,7 +110,7 @@ export const getStyleLoaders = () => {
exclude: [`${styleDir}light.css`, `${styleDir}dark.css`],
},
{
test: /\.scss$/,
test: /\.s[ac]ss$/,
use: ['style-loader', ...cssLoaders, 'sass-loader'],
exclude: [`${styleDir}light.scss`, `${styleDir}dark.scss`],
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment