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 have to export your webpack config in webpack.config.dev.js.
Add this line add the end of your config file.
module.exports = config;
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
module.exports = config;