Minimize the size of the release version #8039
Unanswered
a1994846931931
asked this question in
General
Replies: 1 comment
-
Please see the example of minimal docker distribution for Web development: https://github.com/theia-ide/theia-apps/blob/master/theia-docker/Dockerfile#L8-L17 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question
I was trying to minimize the release version and although managed to reduce the size by building in production mode, the package is still very large. So I'd like to know if there is some general way to reduce the size of the package? Besides, I have the following questions particularly:
package.json
havetypescript
in devDependency (and somehowyarn
won't delete it even in production mode), which accounts for 53MB disk size innode_modules
, and I wonder if there's a better way to get rid of it except deleting it manually after the build?webpack-cli
fromapplication-manager
's dependency, the total size of the node_modules reduced by about 40MB;dev-packages/electron
andexamples/electron
before the build, but you can tell that there are still some electron-related dependencies remain in node_modules, for example, electron-rebuild, so is there a way to remove electron thoroughly?My Build Script
Beta Was this translation helpful? Give feedback.
All reactions