mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-02 11:47:23 +02:00
fix(v2): script tags should allow unknown values (#3385)
https://github.com/facebook/docusaurus/issues/3378
This commit is contained in:
parent
5359d61d9e
commit
0d018a88c5
2 changed files with 4 additions and 1 deletions
|
@ -42,6 +42,7 @@ describe('normalizeConfig', () => {
|
|||
src: `/analytics.js`,
|
||||
async: true,
|
||||
defer: true,
|
||||
'data-domain': 'xyz', // See https://github.com/facebook/docusaurus/issues/3378
|
||||
},
|
||||
],
|
||||
stylesheets: [
|
||||
|
|
|
@ -77,7 +77,9 @@ const ConfigSchema = Joi.object({
|
|||
src: Joi.string().required(),
|
||||
async: Joi.bool(),
|
||||
defer: Joi.bool(),
|
||||
}),
|
||||
})
|
||||
// See https://github.com/facebook/docusaurus/issues/3378
|
||||
.unknown(),
|
||||
),
|
||||
stylesheets: Joi.array().items(
|
||||
Joi.string(),
|
||||
|
|
Loading…
Add table
Reference in a new issue