14 lines
340 B
JavaScript
14 lines
340 B
JavaScript
|
const path = require("path");
|
||
|
const merge = require("webpack-merge");
|
||
|
const common = require("./webpack.common.js");
|
||
|
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
|
||
|
|
||
|
module.exports = merge(common, {
|
||
|
mode: "production",
|
||
|
plugins: [
|
||
|
new WasmPackPlugin({
|
||
|
crateDirectory: path.resolve(__dirname, ".")
|
||
|
})
|
||
|
]
|
||
|
});
|