chore: inline svg to save traffic

This commit is contained in:
josc146
2023-03-17 11:55:51 +08:00
parent 91a4aa6e11
commit d1d7787f1f
3 changed files with 25 additions and 6 deletions
+1 -1
View File
@@ -169,7 +169,7 @@ async function runWebpack(isWithoutKatex, callback) {
type: 'asset/inline',
},
{
test: /\.jpg$/,
test: /\.(jpg|svg)$/,
type: 'asset/inline',
},
],
+2 -5
View File
@@ -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