PWA for development
Summary: This was not possible in the past because the entry points for dev and production were different. This is no longer the case. Reviewed By: antonk52 Differential Revision: D51346250 fbshipit-source-id: fc482a9d90352ea4e897092e7670920f148fa274
This commit is contained in:
committed by
Facebook GitHub Bot
parent
6b54bd3173
commit
6ccae92918
@@ -31,7 +31,7 @@ import {
|
||||
tracker,
|
||||
processExit,
|
||||
} from 'flipper-server-core';
|
||||
import {addLogTailer, isProduction, isTest, LoggerFormat} from 'flipper-common';
|
||||
import {addLogTailer, isTest, LoggerFormat} from 'flipper-common';
|
||||
import exitHook from 'exit-hook';
|
||||
|
||||
const argv = yargs
|
||||
@@ -315,8 +315,7 @@ async function launch() {
|
||||
return;
|
||||
}
|
||||
|
||||
const preference = isProduction() ? UIPreference.PWA : UIPreference.Browser;
|
||||
openUI(preference, argv.port);
|
||||
openUI(UIPreference.PWA, argv.port);
|
||||
}
|
||||
|
||||
process.on('uncaughtException', (error) => {
|
||||
|
||||
Reference in New Issue
Block a user