From 0bef00b83e965aa350df1cd6a16c6ac39c388d93 Mon Sep 17 00:00:00 2001 From: gabrielgio Date: Fri, 25 Mar 2022 17:37:45 +0100 Subject: feat: Add initial draft for rust wasm It adds the initial tooling for build and publishing a static site with wasm. The generate code is barebones, that is just a PoC for tooling, later I'll add proper code logic and test for it. --- www/webpack.config.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 www/webpack.config.js (limited to 'www/webpack.config.js') diff --git a/www/webpack.config.js b/www/webpack.config.js new file mode 100644 index 0000000..80ad814 --- /dev/null +++ b/www/webpack.config.js @@ -0,0 +1,14 @@ +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(['index.html']) + ], +}; -- cgit v1.2.3