From 8fcee176c4e6659221d51c918d341eca53e6eea3 Mon Sep 17 00:00:00 2001 From: imfunny <36105478+imfunniee@users.noreply.github.com> Date: Fri, 24 May 2019 12:54:26 +0530 Subject: [PATCH] fixed #55 --- run.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/run.js b/run.js index 396b7a3..5a049a0 100644 --- a/run.js +++ b/run.js @@ -1,8 +1,9 @@ const express = require('express'); const open = require('open'); const defaultBrowser = require('x-default-browser'); +const outDir = path.resolve('./dist/' || process.env.OUT_DIR); const app = express(); -app.use(express.static(__dirname + '/dist')); +app.use(express.static(`${outDir}/dist`)); function runCommand(){ app.get('/',function(req,res){