mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Fix svg related errors with storybook
This commit is contained in:
parent
db184c74dd
commit
bf8a7e9f1a
@ -19,6 +19,16 @@ module.exports = {
|
|||||||
'addon-screen-reader',
|
'addon-screen-reader',
|
||||||
],
|
],
|
||||||
webpackFinal: async (config, { configType }) => {
|
webpackFinal: async (config, { configType }) => {
|
||||||
|
// @see https://github.com/storybookjs/storybook/issues/9070
|
||||||
|
const fileLoaderRule = config.module.rules.find(rule => rule.test && rule.test.test('.svg'));
|
||||||
|
fileLoaderRule.exclude = /\.svg$/;
|
||||||
|
|
||||||
|
// https://www.npmjs.com/package/@svgr/webpack
|
||||||
|
config.module.rules.push({
|
||||||
|
test: /\.svg$/,
|
||||||
|
use: ['@svgr/webpack'],
|
||||||
|
});
|
||||||
|
|
||||||
config.module.rules.push({
|
config.module.rules.push({
|
||||||
test: /\.less$/,
|
test: /\.less$/,
|
||||||
use: [
|
use: [
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user