Skip to content

Commit b0c22cb

Browse files
committed
Workaround for issue webpack#1575
1 parent 55398b5 commit b0c22cb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Server.js

+4
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,10 @@ function Server (compiler, options = {}, _log) {
132132
// eslint-disable-next-line
133133
const app = this.app = new express();
134134

135+
// ref: https://github.com/webpack/webpack-dev-server/issues/1575
136+
// remove this when send@^0.16.3
137+
express.static.mime.types["wasm"] = "application/wasm";
138+
135139
app.all('*', (req, res, next) => {
136140
if (this.checkHost(req.headers)) {
137141
return next();

0 commit comments

Comments
 (0)