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

how to minify generated files? #36

Closed
frustigor opened this issue Oct 28, 2019 · 1 comment
Closed

how to minify generated files? #36

frustigor opened this issue Oct 28, 2019 · 1 comment

Comments

@frustigor
Copy link

在 optimization.minimizer 中使用 TerserJSPlugin OptimizeCSSAssetsPlugin 进行压缩,common 文件夹下面的 main.js 等都进行了压缩,但是插件生成的 app.js pages/index.wxss 这些都没有压缩,请问应该怎么处理?

@JuneAndGreen
Copy link
Collaborator

JuneAndGreen commented Oct 28, 2019

目前插件这里没有提供相关配置,这些可以直接通过工具的压缩功能来做(对于不使用工具压缩的目录,可以配置babelSetting.ignore )。

https://developers.weixin.qq.com/miniprogram/dev/devtools/projectconfig.html

image

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