File tree Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Expand file tree Collapse file tree 3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -385,7 +385,12 @@ export async function createApp(
385385 if ( ! options . tailwind ) {
386386 await copyFiles ( templateDirBase , [ './src/App.css' ] )
387387 }
388- await templateFile ( templateDirBase , './vite.config.js.ejs' )
388+
389+ // Don't create a vite.config.js file if we are building a Start app
390+ if ( ! isAddOnEnabled ( 'start' ) ) {
391+ await templateFile ( templateDirBase , './vite.config.js.ejs' )
392+ }
393+
389394 await templateFile ( templateDirBase , './src/styles.css.ejs' )
390395
391396 copyFiles ( templateDirBase , [ './src/logo.svg' ] )
Original file line number Diff line number Diff line change 11import { defineConfig } from '@tanstack/react-start/config'
2- import viteTsConfigPaths from 'vite-tsconfig-paths'
2+ import viteTsConfigPaths from 'vite-tsconfig-paths'<% if (tailwind) { % >
3+ import tailwindcss from " @tailwindcss/vite"
4+ < % } %>
35
46export default defineConfig({
57 tsr: {
@@ -11,6 +13,7 @@ export default defineConfig({
1113 viteTsConfigPaths({
1214 projects: ['./tsconfig.json'],
1315 }),
16+ <% if (tailwind) { % > tailwindcss (),< % } %>
1417 ],
1518 },
1619})
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import viteReact from "@vitejs/plugin-react";<% if (tailwind) { %>
33import tailwindcss from " @tailwindcss/vite" ;
44< % } %><% if (fileRouter) { % >
55import { TanStackRouterVite } from " @tanstack/router-plugin/vite" ;< % } %><% if (addOnEnabled[' module-federation' ]) { % >
6- import {federation } from " @module-federation/vite" ;< % } %><% if (addOnEnabled .shadcn ) { % >
6+ import { federation } from " @module-federation/vite" ;< % } %><% if (addOnEnabled .shadcn ) { % >
77import { resolve } from " node:path" ;< % } %><% if (addOnEnabled[' module-federation' ]) { % >
88import federationConfig from " ./module-federation.config.js" ;
99< % } %>
You can’t perform that action at this time.
0 commit comments