0

The Angular2 quickstart guide needs a typescript-1.x.x.js to be fetched but it's about 2.9MB. Even minified would still be too large. Is it best to gulp-typescript the typescript files into js files for deploying on the webserver?

0

2 Answers 2

2

You can either compile your application using the tsc command (provided by the typescript library) statically before reloading the HTML page) or on the fly within the browser using transpiling.

In the first case, you don't need to include the JS file of this library in your browser.

This question could give you more details:

Sign up to request clarification or add additional context in comments.

Comments

1

It doesn't have to be deployed. It only has to be installed on your development environment. That's why it's in the devDependencies section of the package.json file.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.