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 git@github.com:Fafnur/webpack-ts-starter.git projectAfter clone project, you should install dependencies:
yarn installFor development, you can use the command that runs webpack dev server:
yarn run serveFor build your application, run command:
yarn run buildFor build your application on production, run command:
yarn run build:prodAfter 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-jsIE10 and IE11 requires the following for NgClass support on SVG elements
yarn add classlist.js