Make sure icons are bundled
Summary: Make sure icons are prefetched for flipper-server prod builds, like we do for electron, so that the user doesn't need an internet connection to see icons Reviewed By: nikoant Differential Revision: D33296389 fbshipit-source-id: bfa92d78d8d77030238e5cca10d7aa6dcfb88e8b
This commit is contained in:
committed by
Facebook GitHub Bot
parent
72fa481d27
commit
54dacb7e5d
@@ -24,9 +24,7 @@ import {
|
||||
import isFB from './isFB';
|
||||
import yargs from 'yargs';
|
||||
import fs from 'fs-extra';
|
||||
import copyPackageWithDependencies, {
|
||||
copyPackageWithDependenciesRecursive,
|
||||
} from './copy-package-with-dependencies';
|
||||
import {downloadIcons} from './build-icons';
|
||||
|
||||
const argv = yargs
|
||||
.usage('yarn build-flipper-server [args]')
|
||||
@@ -115,6 +113,7 @@ if (argv['enabled-plugins'] !== undefined) {
|
||||
await compileServerMain(false);
|
||||
await buildBrowserBundle(false);
|
||||
await copyStaticResources();
|
||||
await downloadIcons(serverStaticDir);
|
||||
|
||||
if (argv.open) {
|
||||
await launchServer(false, true);
|
||||
|
||||
Reference in New Issue
Block a user