const webpack = require('webpack');
Getting Started with webpack
Drew Powers

Is this necessary to import explicitly? It doesn’t seem to be used anywhere.

I thought for a minute that it may be necessary if we hadn’t installed webpack globally. But when I uninstalled webpack as a global, and instead used an npm script with the local dependency…

"scripts": {
"build": "webpack"

…it also worked fine without directly requiring webpack in webpack.config.js.

Unless I’m missing something, I think we can safely remove this line!

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.