Use two terminals. Run npm start in the first terminal and tsc -w in the second terminal to start the TypeScript compiler.
v20.15.0
npm install --save-dev webpack webpack-cli webpack-dev-server typescript ts-loader clean-webpack-pluginwebpack- Plug in functionality to bundle and transform (minify) our code.ts-loaderandtypescript- Installed locally. TypeScript intalled locally means your project won't break if you use a globally different version. The TS Loader tells WebPack how to convert TS to JavaScript.webpack-dev-server- Use this to spin up a local server.clean-webpack-plugin- Clean up the dist folder completely before building.
npm i --save lodash