silver-fang-mini-game/www/webpack.config.js
2024-05-01 21:24:21 +03:00

23 lines
454 B
JavaScript

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",
plugins: [
new CopyWebpackPlugin({ patterns: ['index.html'] })
],
experiments: {
asyncWebAssembly: true,
},
devServer: {
static: {
directory: path.join(__dirname),
},
}
};