webpack/examples/wasm-simple/webpack.config.js

17 lines
362 B
JavaScript
Raw Normal View History

2017-10-30 20:56:57 +08:00
module.exports = {
// mode: "development || "production",
2017-10-30 20:56:57 +08:00
output: {
webassemblyModuleFilename: "[modulehash].wasm",
publicPath: "js/"
},
module: {
2018-01-19 16:21:00 +08:00
rules: [{
test: /\.wasm$/,
type: "webassembly/experimental"
}]
},
optimization: {
occurrenceOrder: true // To keep filename consistent between different modes (for example building only)
2017-10-30 20:56:57 +08:00
}
};