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

production code not minified #3

Closed
shunjizhan opened this issue Oct 11, 2021 · 2 comments
Closed

production code not minified #3

shunjizhan opened this issue Oct 11, 2021 · 2 comments

Comments

@shunjizhan
Copy link
Contributor

currently we use tsc --build tsconfig.json to build production code, and TS doesn't support minification out of box.

We can pipe TS-compiled code to other minification tools to make bundle as small as possible.

@shunjizhan shunjizhan changed the title Production code not minified production code not minified Oct 11, 2021
@xlc
Copy link
Member

xlc commented Oct 11, 2021

I think that's fine because this is not intended for frontend usage and code size is less an issue for backend servers or tools.

@Randagio13
Copy link

Hi guys!

I think it could help you microsoft/TypeScript#8 (comment)

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

3 participants