Issues with getting started with webpack 4

前端 未结 6 556
抹茶落季
抹茶落季 2020-12-14 16:21

I am following the tutorial exactly as given here . But I am amazed that the docs seems outdated. e.g

npx webpack src/index.js dist/bundle.js fails with

6条回答
  •  感情败类
    2020-12-14 16:44

    Webpack 4 docs are not ready yet. I recently migrated from webpack 3 to 4 and it took me quite some time to figure out all the issues.

    Here'a my sample repo you can use as reference for migrating from webpack 3 to 4.

    https://github.com/flexdinesh/react-redux-boilerplate

    There's one commit specific for migration. Take a look at that for more info.

提交回复
热议问题