@bitgenics/fab-static
Advanced tools
Comparing version 0.4.1 to 0.4.2
{ | ||
"name": "@bitgenics/fab-static", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Front-end Application Bundle generator for (mostly) static applications.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -20,3 +20,3 @@ const url_parse = require('url').parse | ||
const STATIC_DIR_PATH = `/${config.staticDirName}` | ||
const STATIC_DIR_PATH = `/${config.staticDirPath}` | ||
@@ -66,6 +66,3 @@ let files = {} | ||
const pathname = getPath(req.url) | ||
if ( | ||
config.redirectToAssets && | ||
pathname.startsWith(`/${config.staticDirName}`) | ||
) { | ||
if (config.redirectToAssets && pathname.startsWith(STATIC_DIR_PATH)) { | ||
console.log('redirecting!') | ||
@@ -90,4 +87,4 @@ const location = pathname.replace(STATIC_DIR_PATH, '/_assets') | ||
: accepts_html | ||
? htmls['/200.html'] | ||
: null | ||
? htmls['/200.html'] | ||
: null | ||
@@ -94,0 +91,0 @@ if (html_handler) { |
97664
453