How to configure webpack dev server with react router dom v4?

后端 未结 2 1561
面向向阳花
面向向阳花 2020-12-15 16:50

This is the code of my webpack configuration:

const compiler = webpack({
  entry: [\'whatwg-fetch\', path.resolve(__dirname, \'js\', \'app.js\')], 
  module         


        
2条回答
  •  没有蜡笔的小新
    2020-12-15 17:11

    In my case I had to remove proxy config, because the webpack server wanted a response from http://localhost:3001.

    // proxy: {
    //   '/': 'http://localhost:3001',
    // },
    

提交回复
热议问题