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(
385
385
if ( ! options . tailwind ) {
386
386
await copyFiles ( templateDirBase , [ './src/App.css' ] )
387
387
}
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
+
389
394
await templateFile ( templateDirBase , './src/styles.css.ejs' )
390
395
391
396
copyFiles ( templateDirBase , [ './src/logo.svg' ] )
Original file line number Diff line number Diff line change 1
1
import { 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
+ < % } %>
3
5
4
6
export default defineConfig({
5
7
tsr: {
@@ -11,6 +13,7 @@ export default defineConfig({
11
13
viteTsConfigPaths({
12
14
projects: ['./tsconfig.json'],
13
15
}),
16
+ <% if (tailwind) { % > tailwindcss (),< % } %>
14
17
],
15
18
},
16
19
})
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import viteReact from "@vitejs/plugin-react";<% if (tailwind) { %>
3
3
import tailwindcss from " @tailwindcss/vite" ;
4
4
< % } %><% if (fileRouter) { % >
5
5
import { 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 ) { % >
7
7
import { resolve } from " node:path" ;< % } %><% if (addOnEnabled[' module-federation' ]) { % >
8
8
import federationConfig from " ./module-federation.config.js" ;
9
9
< % } %>
You can’t perform that action at this time.
0 commit comments