const CopyWebpackPlugin = require("copy-webpack-plugin"); const path = require("path"); module.exports = { devtool: "source-map", performance: { hints: false, maxEntrypointSize: 512000, maxAssetSize: 512000, }, entry: { bootstrap: "./bootstrap.js", worker: "./worker.js", }, output: { path: path.resolve(__dirname, "dist"), filename: "[name].js", }, mode: "development", // mode: 'production', plugins: [ new CopyWebpackPlugin({ patterns: [ "index.html", { from: "../pkg/*.(js|wasm)", to: "[name][ext]", }, ], }), ], experiments: { syncWebAssembly: true }, };