From 4f28dda9128bac19eb3dfce58eba53440af03cd6 Mon Sep 17 00:00:00 2001 From: Philipp Dieter Date: Tue, 19 May 2020 01:55:23 +0200 Subject: [PATCH] [TASK] Improve handing for empty assets in dev environment --- Configuration/TypoScript/constants.ts | 4 +++- Resources/Private/TypoScript/Setup/page.ts | 4 ++++ Resources/Private/TypoScript/constants.ts | 2 ++ 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 Resources/Private/TypoScript/constants.ts diff --git a/Configuration/TypoScript/constants.ts b/Configuration/TypoScript/constants.ts index 239c941..365a08c 100644 --- a/Configuration/TypoScript/constants.ts +++ b/Configuration/TypoScript/constants.ts @@ -14,4 +14,6 @@ plugin.tx_templatesaide_dummy { } } -## EXTENSION BUILDER DEFAULTS END TOKEN - Everything BEFORE this line is overwritten with the defaults of the extension builder \ No newline at end of file +## EXTENSION BUILDER DEFAULTS END TOKEN - Everything BEFORE this line is overwritten with the defaults of the extension builder + + diff --git a/Resources/Private/TypoScript/Setup/page.ts b/Resources/Private/TypoScript/Setup/page.ts index 16a638d..8535635 100644 --- a/Resources/Private/TypoScript/Setup/page.ts +++ b/Resources/Private/TypoScript/Setup/page.ts @@ -24,6 +24,10 @@ page { } } +["{$asset.css.site}" == ""] + page.includeCSS.file01 > +[global] + pageContentelement = PAGE pageContentelement { typeNum = 5000 diff --git a/Resources/Private/TypoScript/constants.ts b/Resources/Private/TypoScript/constants.ts new file mode 100644 index 0000000..6ce033e --- /dev/null +++ b/Resources/Private/TypoScript/constants.ts @@ -0,0 +1,2 @@ +asset.js.site = +asset.css.site =