-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
npm run build 未进行压缩 #1134
Comments
刚开始是这样:
后来手动安装 wepy-plugin-uglifyjs, wepy-plugin-imagemin后压缩成功了 |
我也是这样,可是自动安装好 |
js是压缩状态的 |
@klouskingsley 必须 wepy-plugin-uglifyjs, wepy-plugin-imagemin 两个都安装了才可以,bash里只提示安装 wepy-plugin-uglifyjs ,所以我一直不行。。 |
插件是在wepy.config.js里面配置的。比如你不需要压缩图片,你就把那个imagemin去掉就行了。 @klouskingsley 默认他会进行手动安装,如果安装失败可能就是因为网络原因导致不通,所以需要自动安装。 |
如果运行 |
我 imagemin 和uglifyjs 都--save-dev了 run build 正常 就是js没编译 |
运行 npm run build 时 出现警告如下,但是实际上图片路径是没问题的,是什么原因导致警告呢 The system cannot find the path specified |
2023年,wepy1最新版,按照官方安装的1.72 wepy init standard myproject ,官方demo还是有这个问题。 |
The text was updated successfully, but these errors were encountered: