fix(@embark/api): setup the embark-ui build dir before the express instance

This commit is contained in:
Michael Bradley, Jr 2019-05-15 17:48:10 -05:00 committed by Michael Bradley
parent 78f7c52080
commit c4d647c299
1 changed files with 1 additions and 1 deletions

View File

@ -32,8 +32,8 @@ export default class Server {
private openSockets = new Set<net.Socket>();
constructor(private embark: Embark, private port: number, private hostname: string, private plugins: Plugins) {
this.expressInstance = this.initApp();
this.embarkUiBuildDir = (findUp.sync("node_modules/embark-ui/build", {cwd: embarkPath()}) || embarkPath("node_modules/embark-ui/build"));
this.expressInstance = this.initApp();
}
public enableLogging() {