Skip to content

Commit

Permalink
Inline flag svgs into css, update dbip url
Browse files Browse the repository at this point in the history
  • Loading branch information
qu1ck committed Nov 25, 2023
1 parent 2b2e079 commit 4387ee8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ Prerequisites:
- [rust 1.69](https://www.rust-lang.org/) or later
- Geoip lookup database in mmdb format, put it in `src-tauri`
```
wget -nv -O- "https://download.db-ip.com/free/dbip-country-lite-2023-09.mmdb.gz" | zcat > src-tauri/dbip.mmdb
wget -nv -O- "https://download.db-ip.com/free/dbip-country-lite-2023-11.mmdb.gz" | zcat > src-tauri/dbip.mmdb
```
You can get latest db from [db-ip.com](https://db-ip.com/db/download/ip-to-country-lite).

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"scripts": {
"tauri-dev": "tauri dev",
"build": "tauri build",
"build-bin": "tauri build -b none",
"webpack-serve": "webpack serve --config webpack.dev.js",
"webpack-dev": "webpack --config webpack.dev.js",
"webpack-prod": "webpack --config webpack.prod.js",
Expand Down
5 changes: 5 additions & 0 deletions webpack.common.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,11 @@ export default (mode) => ({
use: "ts-loader",
exclude: /node_modules/,
},
{
test: /\.svg$/,
issuer: /\.css$/,
type: "asset/inline",
},
{
test: /\.svg$/i,
issuer: /\.[jt]sx?$/,
Expand Down

0 comments on commit 4387ee8

Please sign in to comment.