https://github.com/ldyken53/TVCG-progiso
Tip revision: 9b4d063dbd517c8db6196fcfba97d7a4442af2c0 authored by Landon Dyken on 11 June 2024, 17:43:45 UTC
Handle all buffer management manually rather than automatically allocating with ONNX
Handle all buffer management manually rather than automatically allocating with ONNX
Tip revision: 9b4d063
webpack.config.js
const HtmlWebpackPlugin = require("html-webpack-plugin");
const path = require("path");
module.exports = {
entry: "./src/app.js",
mode: "development",
output: {
filename: "main.js",
path: path.resolve(__dirname, "dist"),
},
module: {
rules: [
{
test: /\.(png|jpg|jpeg)$/i,
type: "asset/resource",
},
{
// Embed your WGSL files as strings
test: /\.wgsl$/i,
type: "asset/source",
}
]
},
plugins: [new HtmlWebpackPlugin({
template: "./index.html",
})],
};
