web-webpack-plugin icon indicating copy to clipboard operation
web-webpack-plugin copied to clipboard

有个多入口多出口的问题想请教一下

Open forever-z-133 opened this issue 5 years ago • 1 comments

src
  - A
    - a
      -index.js
  - B
    - b
      - index.js
template.html

假设我的目录结构是这样的,导到 dist 中的 html 与 index.js 同级,应该怎么做呢?

AutoWebPlugin 的首参是单目录的,只用在 A 上可行。 看了源码是希望我将 { 'src/A/a': true, 'src/B/b': true } 作为首参传进去吗。

forever-z-133 avatar Mar 20 '20 03:03 forever-z-133

目前AutoWebPlugin不支持,你可以用多个WebPlugin实现你的需求,AutoWebPlugin也是基于WebPlugin实现的

gwuhaolin avatar Apr 15 '20 08:04 gwuhaolin