Skip to content

Commit 0fc18e1

Browse files
committed
RTL support
1 parent c986d78 commit 0fc18e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ class ExtractCssChunksPlugin {
333333
Template.indent([
334334
'promises.push(installedCssChunks[chunkId] = new Promise(function(resolve, reject) {',
335335
Template.indent([
336-
`var href = ${linkHrefPath};`,
336+
`var href = document.dir === 'rtl' ? ${linkHrefPath.replace('.css', '.rtl.css')} : ${linkHrefPath};`,
337337
`var fullhref = ${mainTemplate.requireFn}.p + href;`,
338338
'var existingLinkTags = document.getElementsByTagName("link");',
339339
'for(var i = 0; i < existingLinkTags.length; i++) {',

0 commit comments

Comments
 (0)