Skip to content

Commit 8e4383b

Browse files
committed
better icon build
1 parent 036e846 commit 8e4383b

File tree

102 files changed

+138
-3
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

102 files changed

+138
-3
lines changed

web/.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,5 +38,6 @@ module.exports = {
3838
'no-param-reassign': [2, {
3939
'props': false
4040
}],
41+
'global-require': 0,
4142
}
4243
}

web/helper.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/* eslint-disable */
2+
const fs = require('fs');
3+
4+
let text = '';
5+
fs.readdir('.', (err, files) => {
6+
files.forEach((file) => {
7+
const name = file.split('.')[0];
8+
text += `export const ${name} = require('./${file}');\n`;
9+
});
10+
fs.writeFileSync('./index.js', text);
11+
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)