move js & css files to public/manifest.json, allow for stylus files editing without restarting server on development, removed hashres from dev build

This commit is contained in:
Matteo Pagliazzi
2013-11-04 22:11:45 +01:00
parent 54225d38f1
commit d0c29eba78
6 changed files with 143 additions and 189 deletions
+2 -2
View File
@@ -101,8 +101,8 @@ app.use(passport.session());
app.use(app.router);
var oneYear = 31536000000;
app.use(express['static'](path.join(__dirname, "/../build"), { maxAge: oneYear }));
var maxAge = (nconf.get('NODE_ENV') === 'production') ? 31536000000 : 0;
app.use(express['static'](path.join(__dirname, "/../build"), { maxAge: maxAge }));
app.use(express['static'](path.join(__dirname, "/../public")));
// development only