From 4bd38834661b5af69a93dc14529d837cff7da429 Mon Sep 17 00:00:00 2001 From: Mateusz Narowski Date: Thu, 7 Dec 2023 10:41:11 +0100 Subject: [PATCH] feat: added the '~typo3' alias to documentation and included it in the compiler options paths (#266) --- docs/from-scratch/3-customization.md | 4 ++++ jsconfig.json | 7 ++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/docs/from-scratch/3-customization.md b/docs/from-scratch/3-customization.md index 06cd01ad..bc2c8314 100644 --- a/docs/from-scratch/3-customization.md +++ b/docs/from-scratch/3-customization.md @@ -63,6 +63,10 @@ The call to the `store` is actually done in the `nuxt-typo3` plugin. If you want `nuxt-typo3` provides core content elements with the basic logic and markup by default. One thing you have to do to make it nicer is to add some styles. But you can also override the HTML markup and / or the Javascript logic. To do so, follow these steps: +::: tip Info +The `~typo3` alias is at your disposal, providing convenient access to components and mixins within the module. +::: + ### 2.1 Create own `CeText` component **Just add / override some CSS styles.** diff --git a/jsconfig.json b/jsconfig.json index ad68eb17..4496405b 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -2,5 +2,10 @@ "include": [ "./lib/**/*", "./example/**/*" - ] + ], + "compilerOptions": { + "paths": { + "~typo3/*": ["./node_modules/nuxt-typo3/lib/*"] + } + }, }