feat: created Webpack configuration
This commit is contained in:
parent
8e29c7e345
commit
adb3df1abf
|
@ -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']
|
||||
}
|
||||
]
|
||||
},
|
||||
};
|
Loading…
Reference in New Issue