mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-01 02:12:36 +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') {
|
||||
postCssOptions.plugins.push(
|
||||
postcss.plugin('RtlCssPlugin', () => {
|
||||
const resolvedInfimaFile = require.resolve(
|
||||
getInfimaCSSFile(direction),
|
||||
);
|
||||
function isInfimaCSSFile(file) {
|
||||
return (
|
||||
file.endsWith(getInfimaCSSFile(direction)) ||
|
||||
// special case for our own monorepo using symlinks!
|
||||
file.endsWith(
|
||||
'infima/packages/core/dist/css/default/default-rtl.css',
|
||||
)
|
||||
);
|
||||
return file === resolvedInfimaFile;
|
||||
}
|
||||
|
||||
return function (root: any) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue