Skip to content

Commit

Permalink
Fixed webpack setup to seperate compilated client and server code (#95)
Browse files Browse the repository at this point in the history
* Fixed webpack setup to seperate compilated client and server code

* Removed unnecessary output path for development

* Use webpack 3

* Changed output dir for heroku-postbuild
  • Loading branch information
jkettmann authored and lvarayut committed Jul 1, 2017
1 parent d41293e commit 073c1be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion server/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if (config.env === 'development') {
// Launch Relay by creating a normal express server
const relayServer = express();
relayServer.use(historyApiFallback());
relayServer.use('/', express.static(path.join(__dirname, '../build')));
relayServer.use('/', express.static(path.join(__dirname, '../build/app')));
relayServer.use('/graphql', graphQLHTTP({ schema }));
relayServer.listen(config.port, () => console.log(chalk.green(`Relay is listening on port ${config.port}`)));
}
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ module.exports = {
vendor: ['react', 'react-dom', 'react-mdl', 'react-relay', 'react-router', 'react-router-relay']
},
output: {
path: path.join(__dirname, 'build'),
path: path.join(__dirname, 'build/app'),
publicPath: '/',
filename: '[name].js'
},
Expand Down

0 comments on commit 073c1be

Please sign in to comment.