Skip to content

Commit 6c15a7c

Browse files
author
xiazhigang
committed
更新 过滤 @2x,@3x 的图片
1 parent 5d894d3 commit 6c15a7c

File tree

4 files changed

+6171
-6468
lines changed

4 files changed

+6171
-6468
lines changed
971 Bytes
Loading

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@yocdev/tarocodegen",
3-
"version": "1.1.0",
3+
"version": "1.1.2",
44
"author": "[email protected]",
55
"license": "MIT",
66
"bin": {

src/icons/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export default function generateIcons() {
5555
rd.eachSync(routesPath, async (fileDir, stats) => {
5656
const extname = path.extname(fileDir);
5757
const isValidPicture =
58-
stats.isFile() && /svg|png|jpeg/.test(path.extname(fileDir));
58+
stats.isFile() && /svg|png|jpeg/.test(path.extname(fileDir)) && !/@[23]x/.test(fileDir);
5959
// console.log(fileDir);
6060
if (isValidPicture) {
6161
const name = path.basename(fileDir, path.extname(fileDir));

0 commit comments

Comments
 (0)