umi icon indicating copy to clipboard operation
umi copied to clipboard

[Feature Request] umi mpa可以添加output配置么?

Open pxim opened this issue 2 years ago • 3 comments

Background

现在umi mpa配置开启,build后,输出格式是这样的 image

我想自由的设置输出路径,比如这样 build

  • bar
    • index.html
    • index.js
  • foo
    • index.html
    • index.js

因此可否添加一个 output 参数,可以自己配置,输出的html和js的路径, 类似这种

mpa:{
      entry:  {
          foo: 'src/pages/foo/index.tsx',
          bar: 'src/pages/bar/index.tsx'
     },
      output:{
          bar: 'build/bar/index',
          foo: 'build/foo/index'
       }  
}

类似entry 添加多入口,那么每个出口也可以自由配置 image

"umi": "^4.0.52"

Proposal

Describe the solution you'd like, better to provide some pseudo code.

Additional context

Add any other context or screenshots about the feature request here.

pxim avatar Feb 21 '23 07:02 pxim

image 为什么这个插件不维护了,好可惜,真的功能比现在的强太多了

pxim avatar Mar 14 '23 08:03 pxim

image 为什么这个插件不维护了,好可惜,真的功能比现在的强太多了

一样想有这个功能,老哥有好的解决办法吗

Ruler1020730 avatar Jul 03 '23 07:07 Ruler1020730

MAP 模式可以共存么?项目中需要多入口,在 iframe 中使用 类似这个 issue https://github.com/umijs/umi/issues/8050

noxxxxxxxx avatar Jul 12 '23 07:07 noxxxxxxxx