FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
interface/cosmos.override.js at main · PeterTheOne/interface · GitHub
PeterTheOne
interface
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
interface
/
cosmos.override.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (13 loc) · 460 Bytes
Breadcrumbs
interface
/
cosmos.override.js
Copy path
File metadata and controls
14 lines (13 loc) · 460 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
// eslint-disable-next-line @typescript-eslint/no-var-requires
const
HtmlWebpackPlugin
=
require
(
'html-webpack-plugin'
)
// Renders the cosmos fixtures in isolation, instead of using public/index.html.
module
.
exports
=
(
webpackConfig
)
=>
(
{
...
webpackConfig
,
plugins
:
webpackConfig
.
plugins
.
map
(
(
plugin
)
=>
plugin
instanceof
HtmlWebpackPlugin
?
new
HtmlWebpackPlugin
(
{
templateContent
:
'<body></body>'
,
}
)
:
plugin
)
,
}
)
Back
|
FazBrowse Home
|
New Git URL