mirror of
https://github.com/betaflight/betaflight-configurator.git
synced 2025-07-25 09:15:49 +03:00
Fix Android icons (#3722)
This commit is contained in:
parent
305bfccdad
commit
adf380c060
1 changed files with 14 additions and 2 deletions
16
gulpfile.js
16
gulpfile.js
|
@ -379,8 +379,20 @@ function dist_src() {
|
|||
}
|
||||
|
||||
function dist_node_modules_css() {
|
||||
return gulp
|
||||
.src("./node_modules/**/*.min.css")
|
||||
const platforms = getPlatforms();
|
||||
const isAndroid = platforms.includes('android');
|
||||
|
||||
const cssSources = [
|
||||
'./node_modules/**/*.min.css',
|
||||
];
|
||||
|
||||
if (isAndroid) {
|
||||
cssSources.push("./node_modules/**/*.woff2");
|
||||
cssSources.push("./node_modules/**/*.ttf");
|
||||
}
|
||||
|
||||
return gulp
|
||||
.src(cssSources)
|
||||
.pipe(gulp.dest(`${DIST_DIR}node_modules`));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue