js-rln/example/webpack.config.js

21 lines
403 B
JavaScript

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