From a2e3441e6937f1769fed3e16a5f7f7135482cf97 Mon Sep 17 00:00:00 2001 From: Akshay Date: Sun, 19 Sep 2021 09:45:06 +0530 Subject: init --- www/webpack.config.js | 22 ++++++++++++++++++++++ 1 file changed, 22 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..0a1e226 --- /dev/null +++ b/www/webpack.config.js @@ -0,0 +1,22 @@ +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']) + ], + module: { + rules: [ + { + test: /\.txt$/i, + use: 'raw-loader', + }, + ], + }, +}; -- cgit v1.2.3