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

vite-ts cli项目开发环境启用代码压缩报错 #56

Open
z-sq opened this issue Jul 27, 2022 · 1 comment
Open

vite-ts cli项目开发环境启用代码压缩报错 #56

z-sq opened this issue Jul 27, 2022 · 1 comment

Comments

@z-sq
Copy link

z-sq commented Jul 27, 2022

操作步骤
按官网教程创建Vue3/Vite-ts版,
运行 npm run dev:mp-weixin --minify
报错

/Workspace/my-vue3-project/node_modules/cac/dist/index.js:404
          throw new CACError(`Unknown option \`${name.length > 1 ? `--${name}` : `-${name}`}\``);
Error: Unknown option `--minify`
@fxy060608
Copy link
Collaborator

可以先通过vite.config.js配置minify

fxy060608 added a commit to dcloudio/uni-app that referenced this issue Jul 28, 2022
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

2 participants