Skip to content

Commit

Permalink
Workaround for issue webpack#1575
Browse files Browse the repository at this point in the history
  • Loading branch information
samsam2310 committed Nov 27, 2018
1 parent 55398b5 commit b187850
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/Server.js
Expand Up @@ -132,6 +132,10 @@ function Server (compiler, options = {}, _log) {
// eslint-disable-next-line
const app = this.app = new express();

// ref: https://github.com/webpack/webpack-dev-server/issues/1575
// remove this when send@^0.16.3
express.static.mime.types.wasm = 'application/wasm';

app.all('*', (req, res, next) => {
if (this.checkHost(req.headers)) {
return next();
Expand Down

0 comments on commit b187850

Please sign in to comment.