2020-10-11 21:46:15 +01:00
|
|
|
const CopyWebpackPlugin = require("copy-webpack-plugin");
|
|
|
|
const path = require('path');
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
entry: "./bootstrap.js",
|
|
|
|
output: {
|
|
|
|
path: path.resolve(__dirname, "dist"),
|
|
|
|
filename: "bootstrap.js",
|
|
|
|
},
|
|
|
|
mode: "development",
|
2021-06-21 22:41:48 +01:00
|
|
|
experiments: {
|
|
|
|
asyncWebAssembly: true
|
|
|
|
},
|
2020-10-11 21:46:15 +01:00
|
|
|
plugins: [
|
2021-06-21 22:41:48 +01:00
|
|
|
new CopyWebpackPlugin({
|
|
|
|
patterns: [
|
|
|
|
{
|
|
|
|
from: path.resolve(__dirname, "index.html")
|
|
|
|
}
|
|
|
|
]
|
|
|
|
})
|
2020-10-11 21:46:15 +01:00
|
|
|
],
|
|
|
|
};
|