Initial Webpack Bundle Setup
The installed collector must be configured. This is done in a special configuration file webpack.config.js, placed in the root of the site.
First, we need one setting entry, which specifies the entry point. We also need a setting entry, which specifies the build mode (we'll deal with this later in the tutorial).
So, let's create a settings file with the following contents:
export default {
mode: 'development',
entry: './src/index.js',
};
Create the described configuration file in your working folder.