mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-07 05:12:31 +02:00
fix(v2): fix LTR PostCSS bug on Netlify/monorepo symlinks (#4254)
This commit is contained in:
parent
a9b459bdc2
commit
a58baacdc8
1 changed files with 4 additions and 7 deletions
|
@ -157,14 +157,11 @@ export default function docusaurusThemeClassic(
|
||||||
if (direction === 'rtl') {
|
if (direction === 'rtl') {
|
||||||
postCssOptions.plugins.push(
|
postCssOptions.plugins.push(
|
||||||
postcss.plugin('RtlCssPlugin', () => {
|
postcss.plugin('RtlCssPlugin', () => {
|
||||||
|
const resolvedInfimaFile = require.resolve(
|
||||||
|
getInfimaCSSFile(direction),
|
||||||
|
);
|
||||||
function isInfimaCSSFile(file) {
|
function isInfimaCSSFile(file) {
|
||||||
return (
|
return file === resolvedInfimaFile;
|
||||||
file.endsWith(getInfimaCSSFile(direction)) ||
|
|
||||||
// special case for our own monorepo using symlinks!
|
|
||||||
file.endsWith(
|
|
||||||
'infima/packages/core/dist/css/default/default-rtl.css',
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return function (root: any) {
|
return function (root: any) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue