A small and simple template for Angular based chayns® tapps.
- Angular with typescript
- webpack
- webpack-dev-server
- scss
- tslint
- Ahead of time Compilation
- Deployment
npm installThis command starts a dev server listening on port 8081.
Whenever a change in a project file is made, the server reloads the website.
npm startIf you get an 'Invalid Host header' error when accessing the dev-server from ChaynsWeb,
append the following to the 'start'-script in 'package.json': --public example.org
"start": "webpack-dev-server --inline --progress --host 0.0.0.0 --port 8081 --public example.org",The whole project will be build, uglified and sourcemaps will be generated.
The build output will be available after build in dist/ dir.
npm run buildThe dist/ folder will be deploy to a file server.
You can specify the path in webpack/webpack.deploy.js.
npm run deploy