From f1e38aa66ff5d962e22d952753a4077fde91cf44 Mon Sep 17 00:00:00 2001 From: Alex Kotov Date: Thu, 15 Oct 2020 23:37:10 +0500 Subject: [PATCH] Configure Webpack --- .gitignore | 1 + package.json | 2 +- src/index.js | 0 webpack.config.js | 10 ++++++++++ 4 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 src/index.js create mode 100644 webpack.config.js diff --git a/.gitignore b/.gitignore index bf7e7ca..1608f72 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /.env /node_modules/ +/public/assets/ /target/ diff --git a/package.json b/package.json index ca8eca5..687dc39 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "fedihub-registry", "version": "0.0.0", "description": "User registry", - "main": "index.js", + "main": "src/index.js", "repository": "https://github.com/fedihubcom/registry.git", "author": "Alex Kotov ", "license": "MIT", diff --git a/src/index.js b/src/index.js new file mode 100644 index 0000000..e69de29 diff --git a/webpack.config.js b/webpack.config.js new file mode 100644 index 0000000..e1f290a --- /dev/null +++ b/webpack.config.js @@ -0,0 +1,10 @@ +const path = require('path') + +module.exports = { + entry: './src/index.js', + output: { + path: path.resolve(__dirname, 'public/assets'), + publicPath: '/assets/', + filename: 'site.js', + }, +}