andersundsehr / vite_helper
Helps with integrationg vite in Prod and Development
Installs: 32
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:typo3-cms-extension
Requires
- php: ~8.1.0 || ~8.2.0 || ~8.3.0
- helhum/dotenv-connector: ^3.1
- typo3/cms-core: ^11.5 || ^12.0 || ^13.0
Requires (Dev)
- infection/infection: ^0.27.11
- pluswerk/grumphp-config: ^6 || ^7.0.3
- saschaegerer/phpstan-typo3: ^1.10.1
- ssch/typo3-rector: ^2.5.1
- typo3/testing-framework: ^7 || ^8.0.9
README
Can only be used together with our internal setup.
Installation
composer require andersundsehr/vite_helper
Usage
add this to your page.typoscript
page.headTag.stdWrap.postUserFunc = AUS\ViteHelper\ViteUtility->headTag
page.headTag.stdWrap.postUserFunc {
fontPreLoad {
0 = src/fonts/Iconfont/icomoon.ttf
1 = src/fonts/lato-v23-latin-300.woff2
2 = src/fonts/lato-v23-latin-700.woff2
3 = src/fonts/lato-v23-latin-regular.woff2
}
css {
0 = src/typescript/index.css
}
js {
0 = src/typescript/index.ts
}
}
you need to have a vite.config.js
in your project root
with ♥️ from anders und sehr GmbH
If something did not work 😮
or you appreciate this Extension 🥰 let us know.
We are hiring https://www.andersundsehr.com/karriere/