Im trying to organize a webpack 2 template for my personal projects with webpack-dev-server and run it with the npm commands, but i\'m getting this error:
You can use webpack as an executable program, or as a node module. In your case, you are using it as a program, so you have to export your configuation object as already mentioned