S
S
Sashqa2020-03-12 17:12:34
Node.js
Sashqa, 2020-03-12 17:12:34

Compiling ts to js on node js?

Good evening.
I'm running a small service on node js (I'm just getting acquainted with the node), I use typescript.

The service finished and a wish came from the customer so that when the node command is run in the console,
all files are collected in the dist folder and compiled into a js bundle
. I have no idea how this can be done, please tell me what to read on this topic?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Pavel Shvedov, 2020-03-12
@Sashqa

Get webpack, borrow config from here , npm build will build everything in ./build/bundle.js

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question