fix: patched issues with static

This commit is contained in:
Wyatt Johnson committed 2018-09-21 12:50:21 -06:00
1 parent bc78efc428
commit 6b814cee0d
2 files changed
+2 -2

No files matched your search

+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 });