js-waku-examples/examples/noise-js/webpack.config.js
Sasha 8d0f703593
fix: publishing issue of noise-js example (#196)
* change build directory name

* ignore build folder

* publish noise example as built one
2023-01-26 18:25:02 +01:00

20 lines
427 B
JavaScript

const CopyWebpackPlugin = require("copy-webpack-plugin");
const path = require("path");
module.exports = {
entry: "./index.js",
output: {
path: path.resolve(__dirname, "build"),
filename: "index.js",
},
experiments: {
asyncWebAssembly: true,
},
mode: "development",
plugins: [
new CopyWebpackPlugin({
patterns: ["index.html", "favicon.ico", "favicon.png", "manifest.json"],
}),
],
};