1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

fixed svg url loading

This commit is contained in:
Fedor Katurov 2022-01-07 18:52:50 +07:00
parent 13b2f0e1ee
commit 37e0923bb1
2 changed files with 3 additions and 10 deletions

View file

@ -10,15 +10,8 @@ module.exports = {
},
rules: [
{
test: /\.(svg)$/,
use: [
{
loader: 'file-loader',
options: {
name: 'images/[hash]-[name].[ext]',
},
},
],
test: /\.svg/,
type: 'asset/resource',
},
],
},

View file

@ -13,7 +13,7 @@ import { Tabs } from '~/components/dialogs/Tabs';
import { Superpower } from '~/components/boris/Superpower';
import { BorisUIDemo } from '~/components/boris/BorisUIDemo';
const boris = require('~/sprites/boris_robot.svg');
import boris from '~/sprites/boris_robot.svg';
type IProps = {
title: string;