feat: adapted Webpack config from v3 to v4

This commit is contained in:
Begerad, Stefan 2021-09-09 13:45:41 -04:00
parent f7a31a5166
commit 102dc3632d
1 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,5 @@
var path = require('path');
module.exports = {
//entry point of app
entry: './src/index.js',
@ -7,9 +9,12 @@ module.exports = {
publicPath: '/',
filename: 'bundle.js'
},
devServer: {
//tell the server to serve from this place
contentBase: './dist',
static: {
//tell server to serve from this place
directory: path.join(__dirname, 'public'),
},
},
module: {
rules: [