Skip to content

Commit 623d6db

Browse files
authored
Merge pull request #117 from bantic/patch-1
Note that WasmPackPlugin defaults to "dev" profile
2 parents 866b4c2 + 931d7df commit 623d6db

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

webpack.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@ module.exports = {
1919
}),
2020

2121
new WasmPackPlugin({
22-
crateDirectory: path.resolve(__dirname, "crate")
22+
crateDirectory: path.resolve(__dirname, "crate"),
23+
// WasmPackPlugin defaults to compiling in "dev" profile. To change that, use forceMode: 'release':
24+
// forceMode: 'release'
2325
}),
2426
]
2527
};

0 commit comments

Comments
 (0)