Open OPY-bbt opened 6 years ago
import { xxx } from '../components'
import xxx from '../components/xxx
"multipage": true, common: ['react', 'react-dom']
多页应用建议试试 umi,https://github.com/umijs/umi/tree/master/examples/with-dva
import { xxx } from '../components'
引用, 貌似会将 components 下所有组件打包进当前路由内,而使用import xxx from '../components/xxx
则不会打包其他组件。"multipage": true, common: ['react', 'react-dom']
;