Skip to content

Commit

Permalink
Remove some additional es6isms
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleAMathews committed Oct 7, 2015
1 parent cbfd09c commit f07e39c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion lib/utils/post-build.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module.exports = function(program, cb) {
// Wouldn't rewrite basePath
if (oldPath === ".") {
oldPath = "/";
var newPath = `/${parsed.basename}`;
var newPath = "/" + parsed.basename;
}

if (!(oldPath === "/")) {
Expand Down
8 changes: 4 additions & 4 deletions lib/utils/serve.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ module.exports = function(program) {
var HTML = require(directory + '/html');
} catch (e) {
console.log("error loading html template", e);
HTML = require(`${__dirname}/../isomorphic/html`);
HTML = require(__dirname + "/../isomorphic/html");
}

// Generate random port for webpack to listen on.
Expand Down Expand Up @@ -54,7 +54,7 @@ module.exports = function(program) {
path: '/bundle.js',
handler: {
proxy: {
uri: `http://localhost:${webpackPort}/bundle.js`,
uri: "http://localhost:" + webpackPort + "/bundle.js",
passThrough: true,
xforward: true
}
Expand All @@ -64,7 +64,7 @@ module.exports = function(program) {
server.route({
method: "GET",
path: '/html/{path*}',
handler(request, reply) {
handler: function(request, reply) {
if (request.path === "favicon.ico") {
return reply(Boom.notFound());
}
Expand Down Expand Up @@ -99,7 +99,7 @@ module.exports = function(program) {
var page = _.find(pages, function(page) { return page.path === (parsed.dirname + "/"); });

if (page) {
request.setUrl(`/${parsePath(page.requirePath).dirname}/${parsed.basename}`);
request.setUrl("/" + parsePath(page.requirePath).dirname + "/" + parsed.basename);
}

return reply.continue();
Expand Down

0 comments on commit f07e39c

Please sign in to comment.