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

19 lines
372 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: {
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
}
};