FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
docsify/server.js at develop · docsifyjs/docsify · GitHub
docsifyjs
docsify
Repository navigation
Code
Issues
63
(63)
Pull requests
42
(42)
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
docsify
/
server.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (11 loc) · 552 Bytes
Breadcrumbs
docsify
/
server.js
Copy path
File metadata and controls
14 lines (11 loc) · 552 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import
{
create
}
from
'browser-sync'
;
import
{
devConfig
,
prodConfig
}
from
'./server.configs.js'
;
const
bsServer
=
create
(
)
;
const
args
=
process
.
argv
.
slice
(
2
)
;
const
config
=
args
.
includes
(
'--dev'
)
?
devConfig
:
prodConfig
;
const
configName
=
config
===
devConfig
?
'development'
:
'production'
;
const
isWatch
=
Boolean
(
config
.
files
)
&&
config
.
watch
!==
false
;
const
urlType
=
config
===
devConfig
?
'local'
:
'CDN'
;
// prettier-ignore
console
.
log
(
`\nStarting
${
configName
}
server (
${
urlType
}
URLs, watch:
${
isWatch
}
)\n`
)
;
bsServer
.
init
(
config
)
;
Back
|
FazBrowse Home
|
New Git URL