node-http-server
/config.js.dist |
@@ -35,6 +35,8 @@ |
/^.+\.css$/, |
/^.+\.js$/, |
/^.+\.png$/, |
/^.+\.jpg$/, |
/^.+\.gif$/, |
/^.+\.ico$/, |
/^.+\.woff$/, |
/^.+\.woff2$/, |
@@ -41,15 +43,31 @@ |
/^.+\.map$/, |
/^.+\.ttf$/, |
/^.+\.svg$/, |
/^.*\.md$/ |
/^.*\.md$/, |
/^.*\.pdf$/, |
/^.*\.map$/ |
], |
// Any files matching these regular expressions will never be offered. |
reject: [ |
/^\.bashrc$/ |
], |
// Simple re-writing capabilities. |
// Cache expiry time in seconds for various files - a map of seconds |
// to cache to regular expressions matching a local filesystem path. |
cache: { |
3600: [ |
/\.png$/, |
/\.jpg$/, |
/\.js$/, |
/\.css$/, |
/\.map$/ |
], |
60: [ |
/\/js\/?$/ |
] |
}, |
// URL re-writing. |
rewrite: { |
'index.html' : /^\/((?!(bower_components|js|css|img|doc))|\/)(.+?)$/g |
//'index.html' : /^\/((?!(bower_components|js|css|img|doc))|\/)(.+?)$/g |
}, |
// The name of the website. |
name: 'Wizardry and Steamworks', |