Skip to content

Latest commit

 

History

History
31 lines (23 loc) · 879 Bytes

README.md

File metadata and controls

31 lines (23 loc) · 879 Bytes

Webpack and TypeScript

Installation

  • Install Node.js
  • Install Git
  • Install Yarn
  • Install ESLint
  • Open a Terminal and type:
    git clone https://github.com/rainerbez/webpack-typescript
  • Proceed into the downloaded repository:
    cd webpack-typescript
  • Install all the necessary node modules:
    yarn install

Edit the source files

  • public/index.html
  • src/index.ts

Compile and bundle with WebPack

  • To build with Webpack (development):
    yarn webpack:start
    and open browser at: http://localhost/8080

  • To build with Webpack (production):
    yarn webpack:build\

  • To view run lite-server using:
    yarn webpack:view