Closed
Description
- Operating System: ArchLinux
- Node Version: v11.0.0
- NPM Version: 6..4.1
- webpack Version: 4.26.0
- webpack-dev-server Version: 3.1.10
- This is a bug
- This is a modification request
Code
// webpack.config.js
...
devServer: {
contentBase: path.join(__dirname, 'build/bundle'),
watchContentBase: true,
}
...
Expected Behavior
.wasm files should have "application/wasm" content type.
Actual Behavior
Got "application/octet-stream"
For Bugs; How can we reproduce the behavior?
The files generate by webpack work fine. The issue only happen with the static files in contentBase folder.
More information:
mime version: 1.6.0
mime-types version: 2.1.21
Both two package return "application/wasm" when lookup .wasm files.