Webpack no output file: How to debug and save a load of time

Posted 2 years ago

Webpack for some reason or another wouldn’t render to the output file and I was convinced it was the “output” line on my webpack.config file, however after changing that I come to the realisation I was wasting my time. Simply running this command will save you a hell of a lot of time.

webpack --display-error-details

This told me exactly where my problem was and the fact I was trying to import a .scss file from a relative path rather than an absolute path was the gotcha in the end and it had nothing to do with my output file.