/
githubmirror
/
docusaurus
Обзор
Документация
Войти
/
githubmirror
/
docusaurus
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
website/svgo.config.js
29 строк
562 B
Sébastien Lorber
feat(svgr): create new Docusaurus SVGR plugin (#10677)
29 ноя 2024, 19:26
Не верифицирован
29 ноя 2024, 19:26
df6f53a
Код
Авторство
О чём код?
/** * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ const path = require('path'); module.exports = { plugins: [ { name: 'preset-default', params: { overrides: { removeTitle: false, removeViewBox: false, }, }, }, { name: 'prefixIds', params: { delim: '', prefix: (_, info) => path.parse(info.path).name, }, }, ], };