Skip to content

Commit 83a382c

Browse files
author
Vlad Sternbach
committedApr 11, 2016
Merge branch 'webpack'
Conflicts: README.md
2 parents 94ee5c5 + a011a8f commit 83a382c

30 files changed

+6965
-420
lines changed
 

‎README.md

+3-14
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ Now browse to the app at `http://localhost:8080/`.
4747

4848
```
4949
src/ --> all of the source files for the application
50-
app.css --> default stylesheet
5150
components/ --> all app specific modules
5251
services/ --> all app common services
5352
assets/ --> all of the app static assets
@@ -63,18 +62,8 @@ Typescript development is dependant on typings project, that need to be installe
6362
sudo npm install -g typings
6463
```
6564

66-
The angularjs-typescript-webpack project comes preconfigured with a local development webserver. It is a webpack-dev-server, that supports hot reload. You can start this webserver with `npm start`.
65+
The angularjs-typescript-webpack project comes preconfigured with a local development webserver. It is a webpack-dev-server, that supports hot reload. You can start this webserver with `npm start`.
6766

68-
### Running the App in Production
67+
### Building and running the App in Production
6968

70-
This really depends on how complex your app is and the overall infrastructure of your system, but
71-
the general rule is that all you need in production are all the files under the `app/` directory.
72-
Everything else should be omitted.
73-
74-
Angular apps are really just a bunch of static html, css and js files that just need to be hosted
75-
somewhere they can be accessed by browsers.
76-
77-
If your Angular app is talking to the backend server via xhr or other means, you need to figure
78-
out what is the best way to host the static files to comply with the same origin policy if
79-
applicable. Usually this is done by hosting the files by the backend server or through
80-
reverse-proxying the backend server(s) and webserver(s).
69+
To build the application for production just run `npm bundle`, it creates dist directory that have the production optimized build.

‎app/app.css

-178
This file was deleted.

‎app/components/comment.component.ts

-45
This file was deleted.

‎app/components/comment.scss

-68
This file was deleted.

‎app/components/comments.component.ts

-24
This file was deleted.

‎app/components/components.module.ts

-4
This file was deleted.

‎app/edit.svg

-1
This file was deleted.

‎app/services/comments.service.ts

-17
This file was deleted.

0 commit comments

Comments
 (0)