/
githubmirror
/
wp-calypso
Обзор
Документация
Войти
/
githubmirror
/
wp-calypso
Код
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
apps/agents-manager/reader-chat-postcss.config.js
20 строк
595 B
Katrina Tantay
Fix Reader Chat styles on third-party themes (#112750)
20 июл 2026, 17:35
Не верифицирован
20 июл 2026, 17:35
a1b19cc
Код
Авторство
О чём код?
const path = require( 'path' ); const baseConfig = require( '../../packages/calypso-build/postcss.config.js' )(); const agentticUiCssPath = require.resolve( '@automattic/agenttic-ui/index.css' ); module.exports = { ...baseConfig, plugins: { ...baseConfig.plugins, 'postcss-prefix-selector': { prefix: '.agents-manager-chat', transform( prefix, selector, prefixedSelector, filePath ) { if ( path.normalize( filePath ) !== path.normalize( agentticUiCssPath ) ) { return selector; } return selector.includes( prefix ) ? selector : prefixedSelector; }, }, }, };