Skip to content

Commit 7171e9a

Browse files
authored
Merge pull request #325 from aspnetzero/update-documents-bundle-cretion-in-host
Added creation bundle info in angular documents
2 parents 4df49ed + 64935a5 commit 7171e9a

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

docs/en/Deployment-Angular.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
## About Deployment
44

5-
AspNet Zero depends on [angular-cli](https://cli.angular.io/) for development & deployment. It uses angular-cli commands to build and publish its Angular client application. AspNet Zero also minifies and bundles some assets (JS and CSS files) using [gulp](https://gulpjs.com/) before publishing the Angular client application since those assets are loaded dynamically at runtime. In order to publish the Angular client application below commands must be run respectively.
5+
ASP.NET Zero depends on [angular-cli](https://cli.angular.io/) for development & deployment. It uses angular-cli commands to build and publish its Angular client application. ASP.NET Zero also minifies and bundles some assets (JS and CSS files) using [gulp](https://gulpjs.com/) before publishing the Angular client application since those assets are loaded dynamically at runtime. In order to publish the Angular client application below commands must be run respectively.
66

77
1. run ```yarn``` command in the root directory of Angular project.
88
2. run ```npm run publish``` command in the root directory of Angular project.
99

10-
AspNet Zero also provides a merged solution for ASP.NET Core & Angular version. In that solution, Angular client side application is included in the server side Host project. Those two applications, server side API project and Angular client side application, can be published at once and can be hosted together under the same website.
10+
In the Web.Host project, run ```npm run create-bundles``` to bundle and minify JS and CSS files before final deployment.
11+
12+
ASP.NET Zero also provides a merged solution for ASP.NET Core & Angular version. In that solution, Angular client side application is included in the server side Host project. Those two applications, server side API project and Angular client side application, can be published at once and can be hosted together under the same website.
1113

1214
To publish merged Angular solution, follow the steps below;
1315

docs/en/Infrastructure-Angular-Bundling-Minifying-Compiling.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Dynamic Asset Bundling and Minifying
22

3-
AspNet Zero uses [Angular CLI](https://cli.angular.io/) to build the Angular application and it creates style and script bundles. But for some cases, an Angular app might decide which style/script file to use at runtime and loads this style/script file dynamically. For such cases, AspNet Zero provides a bundling and minification system.
3+
ASP.NET Zero uses [Angular CLI](https://cli.angular.io/) to build the Angular application and it creates style and script bundles. But for some cases, an Angular app might decide which style/script file to use at runtime and loads this style/script file dynamically. For such cases, ASP.NET Zero provides a bundling and minification system.
44

5-
AspNet Zero uses [Gulp](https://gulpjs.com/) for bundling & minifying such dynamic script and style files.
5+
ASP.NET Zero uses [Gulp](https://gulpjs.com/) for bundling & minifying such dynamic script and style files.
66

77
Bundle definitions are store in **bundles.json** file. Here is a sample screenshot of **bundles.json** file:
88

@@ -21,6 +21,8 @@ ASP.NET Zero has command for bundling style and script files "**npm run create-d
2121

2222
For production usage, you can run "**npm run publish**" and it will minify dynamic assets for you and then it will publish your Angular app.
2323

24+
In the ***Web.Host project**, you can also run ```npm run create-bundles``` to handle bundling and minification of dynamic JavaScript and CSS files in production.
25+
2426
If you need to make any change about ASP.NET Zero's bundling and minification process, you can modify **gulpfile.js** .
2527

2628
> Note: Don't use the bundle.json unless you have a dynamic css/js file. Normally, Angular CLI manages your css and js file.

0 commit comments

Comments
 (0)