mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-07-30 12:00:10 +08:00
chore: inline svg to save traffic
This commit is contained in:
@@ -169,7 +169,7 @@ async function runWebpack(isWithoutKatex, callback) {
|
||||
type: 'asset/inline',
|
||||
},
|
||||
{
|
||||
test: /\.jpg$/,
|
||||
test: /\.(jpg|svg)$/,
|
||||
type: 'asset/inline',
|
||||
},
|
||||
],
|
||||
|
||||
+2
-5
@@ -18,6 +18,7 @@ import Browser from 'webextension-polyfill'
|
||||
import PropTypes from 'prop-types'
|
||||
import { config as toolsConfig } from '../content-script/selection-tools'
|
||||
import wechatpay from './donation/wechatpay.jpg'
|
||||
import bugmeacoffee from './donation/bugmeacoffee.svg'
|
||||
|
||||
function GeneralPart({ config, updateConfig }) {
|
||||
const [balance, setBalance] = useState(null)
|
||||
@@ -336,11 +337,7 @@ function Donation() {
|
||||
target="_blank"
|
||||
rel="nofollow noopener noreferrer"
|
||||
>
|
||||
<img
|
||||
align="center"
|
||||
alt="buymeacoffee"
|
||||
src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-1.svg"
|
||||
/>
|
||||
<img alt="buymeacoffee" src={bugmeacoffee} />
|
||||
</a>
|
||||
<hr />
|
||||
<>
|
||||
|
||||
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 36 KiB |
Reference in New Issue
Block a user