From feb9f58e87293ec6898add94933a4cd00f28cf27 Mon Sep 17 00:00:00 2001 From: s-ol Date: Mon, 25 Jan 2021 19:39:23 +0100 Subject: initial commit --- webpack.config.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 webpack.config.js (limited to 'webpack.config.js') diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..aa6ca6c --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,24 @@ +const path = require('path'); +const HtmlWebpackPlugin = require('html-webpack-plugin'); +const package = require('./package.json'); + +module.exports = { + context: path.resolve(__dirname, 'src'), + entry: './index.js', + mode: 'development', + module: { + rules: [ + { + test: /\.jsx?$/, + exclude: /node_modules/, + use: { + loader: 'babel-loader', + options: package.babel, + }, + }, + ], + }, + plugins: [ + new HtmlWebpackPlugin({ title: 'FediDag' }), + ], +} -- cgit v1.2.3