File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -13,3 +13,24 @@ The app will automatically reload if you change any of the source files.
13
13
Run ` npm run build ` to build the project.
14
14
The build artifacts will be stored in the ` dist/ ` directory.
15
15
run ` npm run build:prod ` flag for a production build.
16
+
17
+ ## Key Configuration Steps
18
+
19
+ 1 . Create a workspace without an app:
20
+ ``` shell script
21
+ ng new --create-application=false angular-cli-static
22
+ ```
23
+ 1 . Create a minimal app:
24
+ ``` shell script
25
+ ng g app --style=scss --minimal=true --routing=false --skip-tests=true static-html
26
+ ```
27
+ 1 . Comment out ` zone.js ` import in [ polyfills.ts] ( polyfills.ts )
28
+ 1 . In [ angular.json] ( angular.json ) clear out ` "fileReplacements": [] `
29
+ 1 . Remove ` app/ ` , ` environments/ `
30
+ 1 . Remove most of the Angular dependencies from [ package.json] ( package.json ) 's ` dependencies `
31
+ other than ` @angular/core ` , ` @angular/compiler ` , and ` rxjs `
32
+ 1 . Remove ` codelyzer ` and ` @angular/language-service ` from [ package.json] ( package.json ) 's ` devDependencies `
33
+ 1 . Remove ` codelyzer ` from ` rulesDirectory ` and remove all of the Codelyzer rules from
34
+ the workspace [ tslint.json] ( tslint.json )
35
+ 1 . Remove ` directive-selector ` and ` component-selector ` rules
36
+ from your app's [ tslint.json] ( projects/static-html/tslint.json )
You can’t perform that action at this time.
0 commit comments