From 8609918d958fe7dfbbe7871af1a9d89c5e7c5f18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Fri, 30 Nov 2018 15:02:57 -0600 Subject: [PATCH] 2.1.0 --- app/modules/redirect-404.js | 13 ++++++------- package.json | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff --git a/app/modules/redirect-404.js b/app/modules/redirect-404.js index 52efad7..c699305 100644 --- a/app/modules/redirect-404.js +++ b/app/modules/redirect-404.js @@ -2,21 +2,20 @@ -// P A C K A G E S +// I M P O R T import html from "choo/html"; -import { require as local } from "app-root-path"; // U T I L S -const page404 = local("/app/views/404.js"); -const redirects = local("/app/data/redirects.json"); +import page404 from "../views/404"; +import redirects from "../data/redirects.json"; // E X P O R T -module.exports = exports = state => { +export default state => { const redirectUrl = redirects[state.href]; if (redirectUrl) { @@ -43,7 +42,7 @@ module.exports = exports = state => { }, 2000); `; - } else { - return page404(); } + + return page404(); }; diff --git a/package.json b/package.json index e55f6aa..34dfb60 100755 --- a/package.json +++ b/package.json @@ -97,5 +97,5 @@ "app/dist" ] }, - "version": "2.0.1" + "version": "2.1.0" }