mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Toolkit: support sass style for plugins (#22235)
This commit is contained in:
parent
90541d3084
commit
a743a1cc12
@ -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`],
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user