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

后端 未结 8 1483
天命终不由人
天命终不由人 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 12:58

    This question is 2 years old so I think the author has almost certainly moved on from this issue, but to anyone landing here more recently I had a really similar need and was able to write my own plugin to allow for dynamic output paths/names from known and/or unknown entry points.

    My problem and thought process for the solution can be found here.

    And the Node package itself here.

提交回复
热议问题