mirror of https://github.com/embarklabs/embark.git
fix(@embark/api): setup the embark-ui build dir before the express instance
This commit is contained in:
parent
78f7c52080
commit
c4d647c299
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue