Need to add this at the top of the webpack.config.js:
var path = require('path');
var webpack = require('webpack');
It's not intended to be a compete and working js file
Maybe simply stating that it's not a complete example would make it clear? Personally, I've run into many 'almost complete' examples on sites and it's a little frustrating when it doesn't work.
When the instructions say "Create a web/webpack.config.js file:" It should be a complete example from scratch.
There should be a pathway from:
At this point, the Getting Started should have a warning (Note: not really because there are some gaps and you'll just have to figure that out - good luck searching google for a webpack.config that will work for you).
If I figure it out, I'll add it here
Most helpful comment
Maybe simply stating that it's not a complete example would make it clear? Personally, I've run into many 'almost complete' examples on sites and it's a little frustrating when it doesn't work.