Skip to content
This repository was archived by the owner on May 18, 2022. It is now read-only.

Commit dae9b3a

Browse files
committed
Add option to build for production
1 parent 32927ce commit dae9b3a

7 files changed

+9
-9
lines changed

.angular-cli.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@
1919
"testTsconfig": "tsconfig.spec.json",
2020
"prefix": "app",
2121
"styles": [
22+
"../node_modules/normalize.css/normalize.css",
23+
"../node_modules/font-awesome/css/font-awesome.min.css",
24+
"../node_modules/primeng/resources/primeng.min.css",
25+
"../node_modules/primeng/resources/themes/omega/theme.css",
26+
"../node_modules/ngx-toastr/toastr.css",
2227
"sass/styles.scss"
2328
],
2429
"scripts": [],

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ To use the latest release, go to ‘Releases’ tab of this repository. Download
2626
## Build from source
2727
To build application from source you need to install **Node.js** with **npm** package manager.
2828
Then, use following command inside source directory to install all the dependencies: `npm install`
29-
After that, use `npm run build` to build the application. Result application will be placed in `dist` directory.
29+
After that, use `npm run build` to build the application in development mode or `npm run build-prod` to build the application for production. Result application will be placed in `dist` directory.
3030

3131
## Config
3232
**Important**

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"ng": "ng",
77
"start": "ng serve --aot",
88
"build": "ng build --aot --base-href=/wf-a/index.csp",
9+
"build-prod": "ng build --aot --base-href=/wf-a/index.csp --prod",
910
"test": "ng test",
1011
"lint": "ng lint",
1112
"e2e": "ng e2e"

src/app/app.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<footer class="app-footer">
1010
<div class="ui-g container">
1111
<div class="ui-g-4"></div>
12-
<div class="ui-g-4" style="text-align: center">Current version: 0.4.2.92</div>
12+
<div class="ui-g-4" style="text-align: center">Current version: 0.4.3.95</div>
1313
<div class="ui-g-4" style="text-align: center">Built with Angular 5 and PrimeNG</div>
1414
</div>
1515
</footer>
File renamed without changes.

src/app/app.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Component } from '@angular/core';
33
@Component({
44
selector: 'app-root',
55
templateUrl: './app.component.html',
6-
styleUrls: ['./app.component.css']
6+
styleUrls: ['./app.component.scss']
77
})
88
export class AppComponent {
99
title = 'app';

src/sass/styles.scss

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,3 @@
1-
@import "~normalize.css";
2-
@import "../../node_modules/font-awesome/css/font-awesome.min.css";
3-
@import "../../node_modules/primeng/resources/primeng.min.css";
4-
@import "../../node_modules/primeng/resources/themes/omega/theme.css";
5-
@import "~ngx-toastr/toastr.css";
6-
71
html, body {
82
font-family: "Roboto", "Trebuchet MS", Arial, Helvetica, sans-serif;
93
}

0 commit comments

Comments
 (0)