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

打包命令后代码没有压缩 #4226

Closed
MBearo opened this issue Jul 3, 2019 · 2 comments
Closed

打包命令后代码没有压缩 #4226

MBearo opened this issue Jul 3, 2019 · 2 comments
Labels
needs reproduction This issue is missing a minimal runnable reproduction, provided by the author

Comments

@MBearo
Copy link

MBearo commented Jul 3, 2019

Version

3.8.0

Environment info

node 10.14.2
os centos 7

Steps to reproduce

docker环境内
起了一个node服务,用户通过调用api,node用exec运行npm run build

What is expected?

DONE Compiled successfully in 4337ms3:50:15 AM

File Size Gzipped

fe2d80f43/main.js 4028.38 KiB 877.17 KiB

Images and other types of assets omitted.

DONE Build complete. The fe2d80f43 directory is ready to be deployed.

What is actually happening?

File Size Gzipped

fe2d80f43/js/chunk-vendors.9e75aeb4.js 281.50 KiB 85.23 KiB
fe2d80f43/js/main.8485403b.js 27.78 KiB 8.67 KiB
fe2d80f43/css/main.afe7245d.css 3.86 KiB 1.59 KiB

Images and other types of assets omitted.

DONE Build complete. The fe2d80f43 directory is ready to be deployed.


没有定位问题,希望可以给点思路

@sodatea
Copy link
Member

sodatea commented Jul 3, 2019

从输出的消息来看不是已经压缩了吗?

另外,请提供复现代码。

@sodatea sodatea added the needs reproduction This issue is missing a minimal runnable reproduction, provided by the author label Jul 3, 2019
@MBearo
Copy link
Author

MBearo commented Jul 3, 2019

感谢,是因为子进程环境变量的问题

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs reproduction This issue is missing a minimal runnable reproduction, provided by the author
Projects
None yet
Development

No branches or pull requests

2 participants