Skip to content
This repository has been archived by the owner on Jan 11, 2019. It is now read-only.

Commit

Permalink
Turn off Webpack rebuilding output.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rick committed Dec 29, 2015
1 parent 408bd77 commit f873db8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import koa from "koa";
import proxy from "koa-proxy";
import serve from "koa-static";
import koaProxy from "koa-proxy";
import koaStatic from "koa-static";

import React from "react";
import ReactDOM from "react-dom/server";
Expand Down Expand Up @@ -28,9 +28,9 @@ try {
});
}

app.use(serve("static", {defer: true}));
app.use(koaStatic("static", {defer: true}));

app.use(proxy({
app.use(koaProxy({
host: githubApi.url,
match: /^\/api\/github\//i,
map: (path) => path.replace(/^\/api\/github\//i, "/")
Expand Down
4 changes: 2 additions & 2 deletions webpack.client-watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ config.devServer = {
hot: true,
inline: true,
lazy: false,
quiet: false,
noInfo: false,
quiet: true,
noInfo: true,
headers: {"Access-Control-Allow-Origin": "*"},
stats: {colors: true},
host: process.env.HOSTNAME || "localhost"
Expand Down

0 comments on commit f873db8

Please sign in to comment.