react-config-tut: changed dev and prod dir

This commit is contained in:
Begerad, Stefan 2021-09-09 14:33:08 -04:00
parent 0ab82d22f5
commit 0a330da1aa
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ module.exports = {
entry: './src/index.js',
//put the output of the bundling process at this place
output: {
path: __dirname + '/dist',
path: path.resolve(__dirname, 'build'),
publicPath: '/',
filename: 'bundle.js'
},
@ -15,7 +15,7 @@ module.exports = {
devServer: {
static: {
//tell server to serve from this place
directory: path.join(__dirname, 'public'),
directory: path.join(__dirname, '/build'),
},
},
module: {