2017-10-30 20:56:57 +08:00
|
|
|
module.exports = {
|
2017-12-14 17:09:09 +08:00
|
|
|
// 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"
|
|
|
|
}]
|
2017-12-14 17:09:09 +08:00
|
|
|
},
|
|
|
|
optimization: {
|
|
|
|
occurrenceOrder: true // To keep filename consistent between different modes (for example building only)
|
2017-10-30 20:56:57 +08:00
|
|
|
}
|
|
|
|
};
|