Skip to content

Commit

Permalink
Changed serving static files in server config
Browse files Browse the repository at this point in the history
  • Loading branch information
rybex committed Jun 8, 2015
1 parent 8dfd16e commit 53aefd3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions server.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@ app.get('/', function (req, res) {
res.sendFile(__dirname + '/build/index.html'); res.sendFile(__dirname + '/build/index.html');
}); });


app.get('/style.css', function (req, res) { app.use(express.static(__dirname + '/build/stylesheets'));
res.sendFile(__dirname + '/build/style.css');
});


new WebpackDevServer(webpack(config), { new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath, publicPath: config.output.publicPath,
Expand Down

0 comments on commit 53aefd3

Please sign in to comment.