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
/node_modules/
/public/assets/
/target/

View File

@ -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 <kotovalexarian@gmail.com>",
"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',
},
}