Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 807 Bytes

File metadata and controls

24 lines (16 loc) · 807 Bytes

Running the application

Use two terminals. Run npm start in the first terminal and tsc -w in the second terminal to start the TypeScript compiler.

Node Version

v20.15.0

Configuring Webpack

npm install --save-dev webpack webpack-cli webpack-dev-server typescript ts-loader clean-webpack-plugin
  • webpack - Plug in functionality to bundle and transform (minify) our code.
  • ts-loader and typescript - 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.

Other Libraries

npm i --save lodash