You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-14
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,6 @@ Now browse to the app at `http://localhost:8080/`.
47
47
48
48
```
49
49
src/ --> all of the source files for the application
50
-
app.css --> default stylesheet
51
50
components/ --> all app specific modules
52
51
services/ --> all app common services
53
52
assets/ --> all of the app static assets
@@ -63,18 +62,8 @@ Typescript development is dependant on typings project, that need to be installe
63
62
sudo npm install -g typings
64
63
```
65
64
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`.
67
66
68
-
### Running the App in Production
67
+
### Building and running the App in Production
69
68
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.
0 commit comments