Configure Webpack
This commit is contained in:
parent
44d223687c
commit
f1e38aa66f
4 changed files with 12 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,3 +1,4 @@
|
||||||
/.env
|
/.env
|
||||||
/node_modules/
|
/node_modules/
|
||||||
|
/public/assets/
|
||||||
/target/
|
/target/
|
||||||
|
|
|
@ -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
0
src/index.js
Normal file
10
webpack.config.js
Normal file
10
webpack.config.js
Normal 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',
|
||||||
|
},
|
||||||
|
}
|
Reference in a new issue