Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

20190305 - UMI问题 #3

Open
onvno opened this issue Mar 5, 2019 · 4 comments
Open

20190305 - UMI问题 #3

onvno opened this issue Mar 5, 2019 · 4 comments

Comments

@onvno
Copy link
Owner

onvno commented Mar 5, 2019

@onvno
Copy link
Owner Author

onvno commented Mar 6, 2019

@onvno
Copy link
Owner Author

onvno commented Mar 6, 2019

dva onerror 不能捕捉到异常dvajs/dva#1174

@onvno
Copy link
Owner Author

onvno commented Aug 8, 2019

umi 扩展webpack配置:
umi内部实际使用的是chainWebpack ,使用了webpack-chain这个包,可以很方便的覆盖或增加配置。
如需覆盖,只需要找到源码中的配置名:

chainWebpack(config) {
      // CSS文件输出格式
      config.plugin('extract-css').use(MiniCssExtractPlugin, [
        {
          filename: `${date}_[name]_[hash].css`,
          chunkFilename: `${date}_[name]_[hash].chunk.css`,
        },
      ]);
}

umi-css.js

@onvno
Copy link
Owner Author

onvno commented Nov 25, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant