I was configuring webpack configuration with my own instead of copy things and paste , I just need to understand each and every line in Webpack configuration file.
What is the use of the first line require('path') in webpack Configuration File.
const path = require('path');
module.exports = {
entry: './src/app.js',
output: {
path: path.resolve(__dirname, 'bin'),
filename: 'app.bundle.js'
}
};
https://webpack.github.io/docs/usage.html
I am following the above link to getting things started
in the module.exports , path has been used but i did not get any idea in the usage of the path. Please let me know the usage. So i can start further.