1 2 3 |
npm init tsc --init npm install --save-dev webpack webpack-cli webpack-dev-server typescript ts-loader |
Webpack is a tool that allows us to bundle our code. Transform our typescript code into javascript, then emit 1 javascript bundle file.
Webpack-dev-server is a development server.
Set up a webpack project
go to tsconfig file.
“target”: “es6”
“module”:”2016″
touch webpack.config.js
webpack will automatically look for this file.