Skip to content

Commit

Permalink
Merge pull request #4 from sitegeist/feature/optionalPreloading
Browse files Browse the repository at this point in the history
[TASK] make preloading optional for TYPO3 12 projects, in case asset …
  • Loading branch information
Jaervinen authored Jul 11, 2024
2 parents 53ed3d3 + 92f31b6 commit ae062c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@sitegeist/vitesse",
"version": "0.2.1",
"version": "0.3.0",
"type": "module",
"description": "FE toolkit for sitegeist TYPO3 projects (mainly using Vite)",
"bin": "bin/vitesse.js",
Expand Down
4 changes: 3 additions & 1 deletion src/node/configs/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ const buildConfig = (userSettings: any, options: any) => {
if (userSettings.includeSvelte) {
vitePlugins = [
...vitePlugins,
svelte({
...svelte({
preprocess: sveltePreprocess(),
configFile: svelteConfigFile
})
Expand All @@ -58,10 +58,12 @@ const buildConfig = (userSettings: any, options: any) => {
// console.log('newoutpath', outputDir)

// ToDo: mode for production and dev in watcher

return {
root: process.cwd(), // default?
base: extPath,
build: {
modulePreload: userSettings.modulePreload === false ? false : { polyfill: true }, // option solely for TYPO3 >= 12 since the assets folder is dynamicall created. If could be passed here, preload could be used.
manifest: true,
watch: options.watch ? {} : null,
rollupOptions: {
Expand Down

0 comments on commit ae062c4

Please sign in to comment.