aboutsummaryrefslogtreecommitdiffstats
path: root/webpack.config.js
diff options
context:
space:
mode:
Diffstat (limited to 'webpack.config.js')
-rw-r--r--webpack.config.js24
1 files changed, 24 insertions, 0 deletions
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' }),
+ ],
+}