Files
nym/nym-credential-proxy/vpn-api-lib-wasm/internal-dev/webpack.config.js
T
2024-10-16 22:23:53 +02:00

34 lines
680 B
JavaScript

const CopyWebpackPlugin = require("copy-webpack-plugin");
const path = require("path");
module.exports = {
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: "../../../dist/wasm/nym-vpn-api-lib-wasm/*.(js|wasm)",
to: "[name][ext]"
}
]
})
],
experiments: { syncWebAssembly: true }
};