Starter for development typescript application with webpack. Russian
NOTE: Use Nx WEB instead of webpack-ts-starter. Read more on habr.
To get started, you should run command:
git clone [email protected]:Fafnur/webpack-ts-starter.git project
After clone project, you should install dependencies:
yarn install
For development, you can use the command that runs webpack dev server:
yarn run serve
For build your application, run command:
yarn run build
For build your application on production, run command:
yarn run build:prod
After buld, 3 files will be generated in the dist folder:
- index.html
- bundle.js
- style.css
The assets
folder, which will contain all the necessary files.
For add libraries you can use command:
yarn add <lib-name>
For add polyfills you can use core-js:
yarn add core-js
IE10 and IE11 requires the following for NgClass support on SVG elements
yarn add classlist.js