Webpack configuration file found but no entry configured

前端 未结 2 741
自闭症患者
自闭症患者 2021-01-26 07:42

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:

<

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-26 08:14

    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;
    

提交回复
热议问题