Issues with getting started with webpack 4

前端 未结 6 555
抹茶落季
抹茶落季 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:39

    You can pass mode param in the webpack config or cli command.

    Config: mode: 'development' or mode: 'production'

    CLI: webpack --mode development or webpack --mode production

提交回复
热议问题