fix: patched issues with static

This commit is contained in:
Wyatt Johnson
2018-09-21 12:50:21 -06:00
parent bc78efc428
commit 6b814cee0d
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -97,7 +97,7 @@ function setupViews(options: AppOptions) {
const { parent } = options;
// configure the default views directory.
const views = path.join(__dirname, "..", "..", "..", "static");
const views = path.join(__dirname, "..", "..", "..", "..", "dist", "static");
parent.set("views", views);
// Reconfigure nunjucks.
@@ -2,7 +2,7 @@ import serveStatic from "express-static-gzip";
import path from "path";
const staticPath = path.resolve(
path.join(__dirname, "..", "..", "..", "..", "static", "assets")
path.join(__dirname, "..", "..", "..", "..", "..", "dist", "static", "assets")
);
export default serveStatic(staticPath, { index: false });