Skip to content

Commit 931d7df

Browse files
authored
Note that WasmPackPlugin defaults to "dev" profile
Modify the webpack.config.js to point out that the crate will be compiled in "dev" profile by default.
1 parent 866b4c2 commit 931d7df

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)