1
0
Fork 0

Configure Webpack

This commit is contained in:
Alex Kotov 2020-10-15 23:37:10 +05:00
parent 44d223687c
commit f1e38aa66f
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
4 changed files with 12 additions and 1 deletions

1
.gitignore vendored
View file

@ -1,3 +1,4 @@
/.env /.env
/node_modules/ /node_modules/
/public/assets/
/target/ /target/

View file

@ -2,7 +2,7 @@
"name": "fedihub-registry", "name": "fedihub-registry",
"version": "0.0.0", "version": "0.0.0",
"description": "User registry", "description": "User registry",
"main": "index.js", "main": "src/index.js",
"repository": "https://github.com/fedihubcom/registry.git", "repository": "https://github.com/fedihubcom/registry.git",
"author": "Alex Kotov <kotovalexarian@gmail.com>", "author": "Alex Kotov <kotovalexarian@gmail.com>",
"license": "MIT", "license": "MIT",

0
src/index.js Normal file
View file

10
webpack.config.js Normal file
View file

@ -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',
},
}