fix: serve css/js via cdn
This commit is contained in:
+8
-2
@@ -1,10 +1,16 @@
|
||||
config.tx_replacer {
|
||||
enable_regex = 1
|
||||
|
||||
# The quote character is captured rather than matched literally, because the
|
||||
# @font-face block in Page/Main.typoscript writes its url() values with single
|
||||
# quotes - anchoring on `"` alone would skip every font.
|
||||
# typo3conf is scoped to ep_theme/Resources/Public on purpose: it keeps other
|
||||
# extensions, Configuration/ and Resources/Private/ out of the CDN.
|
||||
search {
|
||||
10 = /"\/?(fileadmin|typo3temp|uploads)/
|
||||
10 = /(["'])\/?(fileadmin|typo3temp|uploads|typo3conf\/ext\/ep_theme\/Resources\/Public)/
|
||||
}
|
||||
|
||||
replace {
|
||||
10 = "https://cdn.ep-reisen.de/$1
|
||||
10 = $1https://cdn.ep-reisen.de/$2
|
||||
}
|
||||
}
|
||||
|
||||
+2
-1
@@ -5,5 +5,6 @@ plugin.tx_typo3encore {
|
||||
builds {
|
||||
EpThemeConfig = EXT:ep_theme/Resources/Public
|
||||
}
|
||||
preload.enable = 0
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user