How to set multiple file entry and output in project with webpack?

后端 未结 8 1494
天命终不由人
天命终不由人 2020-12-12 12:14

How to set multiple file entry/output in project with webpack?

I follow http://webpack.github.io/docs/tutorials/getting-started/ success compile if only one file in

8条回答
  •  隐瞒了意图╮
    2020-12-12 13:13

    What if you want to get output files as foo.css and bar.js at the same time? the answers above seem incapable to handle this.

    The sane way is to use multi-compiler. One input file one config object one output file. From this answer.

提交回复
热议问题