我现在开发了一个 umi 插件,其中用到了 chainWebpack 方法,不知道这里面的内容怎么写测试用例 #5995
Answered
by
sorrycc
bluescurry
asked this question in
Q&A
-
如题,我想测试 api.chainWebapck 中的内容,但是在执行
|
Beta Was this translation helpful? Give feedback.
Answered by
sorrycc
Jan 18, 2021
Replies: 1 comment
-
import { Service } from 'umi'; new Service().runCommand({ name: 'webpack' } }) 拿到 webpack 配置看是否正确。 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
bluescurry
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import { Service } from 'umi'; new Service().runCommand({ name: 'webpack' } }) 拿到 webpack 配置看是否正确。