FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
patternfly-elements/web-dev-server.config.js at main · patternfly/patternfly-elements · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
patternfly
/
patternfly-elements
Public
Notifications
You must be signed in to change notification settings
Fork
107
Star
393
Code
Issues
154
Pull requests
16
Discussions
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Discussions
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
patternfly-elements
/
web-dev-server.config.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
31 lines (28 loc) · 1 KB
Breadcrumbs
patternfly-elements
/
web-dev-server.config.js
Copy path
File metadata and controls
31 lines (28 loc) · 1 KB
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
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import
{
pfeDevServerConfig
}
from
'@patternfly/pfe-tools/dev-server/config.js'
;
import
{
makeDemoEnv
}
from
'@patternfly/pfe-tools/environment.js'
;
import
{
writeFile
,
mkdir
}
from
'node:fs/promises'
;
await
mkdir
(
new
URL
(
'./_site/tools'
,
import
.
meta
.
url
)
,
{
recursive
:
true
}
)
;
await
writeFile
(
new
URL
(
'./_site/tools/environment.js'
,
import
.
meta
.
url
)
,
await
makeDemoEnv
(
process
.
cwd
(
)
)
,
'utf-8'
,
)
;
export
default
pfeDevServerConfig
(
{
// workaround for https://github.com/evanw/esbuild/issues/3019
tsconfig
:
'tsconfig.esbuild.json'
,
importMapOptions
:
{
providers
:
{
'zero-md'
:
'nodemodules'
,
'@patternfly/icons'
:
'nodemodules'
,
'@patternfly/elements'
:
'monorepotypescript'
,
'@patternfly/pfe-tools'
:
'monorepotypescript'
,
'@patternfly/pfe-core'
:
'monorepotypescript'
,
}
,
inputMap
:
{
imports
:
{
'@patternfly/icons/'
:
'./node_modules/@patternfly/icons/'
,
'@patternfly/pfe-tools/environment.js'
:
'./_site/tools/environment.js'
,
}
,
}
,
}
,
}
)
;
Back
|
FazBrowse Home
|
New Git URL