3 ms·
Is this a full build? Have you used `tsc --watch` at all?
by basil-rash 8y ago
Is this a full build? Have you used `tsc --watch` at all?
- austincheney 8y agoHonestly I wasn't even aware of --watch or I had forgotten about it. It doesn't do what I need though. Updates to both .ts and .css files trigger the build. The build step compiles the Typescript files into JavaScript and then merges certain JavaScript files together and makes minor modifications on the fly. I prefer to do testing in the browser as its easier for me to read the code output there, so once the code is properly packaged web sockets fires a notification to the browser to refresh the page which brings in the freshly built code. My raw TS and CSS code exists in several different files for management, but the final packaged code provides the browser 1 CSS file and 2 JavaScript files, which decreases the HTML load time.
- basil-rash 8y agoIf build time is an issue (not sure if it is or not), you can have `tsc --watch` running for the `.ts -> .js`, then also have a separate watcher for `.js` and `.css` changes that builds your final bundle.