Fix import path and remove unused CopyWebpackPlugin

- Fixed import path for avatar_devchat.svg in MessageHeader/index.tsx.
- Removed unused CopyWebpackPlugin from webpack.config.js.
This commit is contained in:
Rankin Zheng 2023-08-03 17:16:15 +08:00
parent 7062d423ae
commit 8da3083e9e
2 changed files with 1 additions and 6 deletions

View File

@ -2,7 +2,7 @@ import React from "react";
import { Text, Flex, Avatar, ActionIcon, Tooltip, CopyButton, SimpleGrid } from "@mantine/core";
// @ts-ignore
import SvgAvatarDevChat from '/avatar_devchat.svg';
import SvgAvatarDevChat from './avatar_devchat.svg';
// @ts-ignore
import SvgAvatarUser from './avatar_spaceman.png';
import { IconCheck, IconCopy, Icon360, IconEdit, IconTrash } from "@tabler/icons-react";

View File

@ -168,11 +168,6 @@ const webviewConfig = {
filename: 'welcome.html',
chunks: ['welcome']
}),
new CopyWebpackPlugin({
patterns: [
{ from: 'assets', to: 'assets' },
],
})
]
};