File tree 2 files changed +9
-13
lines changed
2 files changed +9
-13
lines changed Original file line number Diff line number Diff line change @@ -10,9 +10,6 @@ repo](https://github.com/webhintio/hint).
10
10
11
11
## Getting started
12
12
13
- _ ** Note:** _ Our builder uses async arrow functions as well as other ES2017
14
- features so please ensure you are using Node.js v8.x or higher.
15
-
16
13
Clone the project:
17
14
18
15
``` bash
@@ -25,24 +22,23 @@ Install dependencies:
25
22
npm install
26
23
```
27
24
28
- Fetch remote content (e.g. documentation)
29
-
30
- ``` bash
31
- npm run update-site
32
- ```
33
-
34
25
Build the site:
35
26
36
27
``` bash
37
28
npm run build
38
29
```
39
30
40
- Run server:
31
+ The command above will pull all the documentation and generate all the required
32
+ assets. It might take a bit so please be patient.
33
+
34
+ Run the site:
41
35
42
36
``` bash
43
37
npm start
44
38
```
45
39
40
+ This will start a local web server in port 4000.
41
+
46
42
To know more about the internals of the site please read the
47
43
[ server] ( architecture/server.md ) documentation.
48
44
Original file line number Diff line number Diff line change @@ -77,9 +77,9 @@ const configureRoutes = (app) => {
77
77
} ;
78
78
79
79
const configureFallbacks = ( app ) => {
80
- if ( production ) {
81
- app . use ( '/' , express . static ( path . join ( rootPath , 'dist' ) ) ) ;
82
- } else {
80
+ app . use ( '/' , express . static ( path . join ( rootPath , 'dist' ) ) ) ;
81
+
82
+ if ( ! production ) {
83
83
app . use ( '/' , express . static ( path . join ( hexoDir , theme , 'source' ) ) ) ;
84
84
}
85
85
} ;
You can’t perform that action at this time.
0 commit comments