dzserver/webpack.config.js
2021-08-16 19:52:51 +02:00

21 lines
No EOL
412 B
JavaScript

const path = require("path");
const WasmPackPlugin = require("@wasm-tool/wasm-pack-plugin");
module.exports = {
entry: {
index: "./index.js"
},
plugins: [
new WasmPackPlugin({
crateDirectory: __dirname,
}),
],
module: {
rules: [
{
test: /\.html$/i,
loader: 'html-loader'
}
]
}
};