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:
parent
13b2f0e1ee
commit
37e0923bb1
2 changed files with 3 additions and 10 deletions
|
@ -10,15 +10,8 @@ module.exports = {
|
||||||
},
|
},
|
||||||
rules: [
|
rules: [
|
||||||
{
|
{
|
||||||
test: /\.(svg)$/,
|
test: /\.svg/,
|
||||||
use: [
|
type: 'asset/resource',
|
||||||
{
|
|
||||||
loader: 'file-loader',
|
|
||||||
options: {
|
|
||||||
name: 'images/[hash]-[name].[ext]',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
|
|
@ -13,7 +13,7 @@ import { Tabs } from '~/components/dialogs/Tabs';
|
||||||
import { Superpower } from '~/components/boris/Superpower';
|
import { Superpower } from '~/components/boris/Superpower';
|
||||||
import { BorisUIDemo } from '~/components/boris/BorisUIDemo';
|
import { BorisUIDemo } from '~/components/boris/BorisUIDemo';
|
||||||
|
|
||||||
const boris = require('~/sprites/boris_robot.svg');
|
import boris from '~/sprites/boris_robot.svg';
|
||||||
|
|
||||||
type IProps = {
|
type IProps = {
|
||||||
title: string;
|
title: string;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue