feat: created Webpack configuration

This commit is contained in:
Begerad, Stefan 2021-09-09 13:22:53 -04:00
parent 8e29c7e345
commit adb3df1abf
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
module.exports = {
//entry point of app
entry: './src/index.js',
//put the output of the bundling process at this place
output: {
path: __dirname + '/dist',
publicPath: '/',
filename: 'bundle.js'
},
devServer: {
//tell the server to serve from this place
contentBase: './dist',
},
module: {
rules: [
//use babel-loader to transpile these file types
{
test: /\.(js|jsx)$/,
exclude: /node_modules/,
use: ['babel-loader']
}
]
},
};