uni-app
uni-app copied to clipboard
CACError: Unknown option `--minify`
编译至微信小程序时,试图启用Dev的minify压缩,报错
> uni -p mp-weixin --minify
throw new CACError(Unknown option \
${name.length > 1 ? --${name}
: -${name}
}``);
^
CACError: Unknown option --minify
at Command.checkUnknownOptions (E:\school-assistant-client\node_modules\cac\dist\index.js:404:17)
at CAC.runMatchedCommand (E:\school-assistant-client\node_modules\cac\dist\index.js:602:13)
at CAC.parse (E:\school-assistant-client\node_modules\cac\dist\index.js:541:12)
at Object.
Process finished with exit code 1
环境:vite vue3.2 ts