@@ -11,6 +11,8 @@ ${colors.logoBlue("R")} ${colors.logoGreen("E")} ${colors.logoYellow(
1111
1212 ${ colors . heading ( "Usage" ) } :
1313 $ remix init [${ colors . arg ( "projectDir" ) } ]
14+ $ remix vite:build [${ colors . arg ( "projectDir" ) } ]
15+ $ remix vite:dev [${ colors . arg ( "projectDir" ) } ]
1416 $ remix build [${ colors . arg ( "projectDir" ) } ]
1517 $ remix dev [${ colors . arg ( "projectDir" ) } ]
1618 $ remix routes [${ colors . arg ( "projectDir" ) } ]
@@ -20,8 +22,31 @@ ${colors.logoBlue("R")} ${colors.logoGreen("E")} ${colors.logoYellow(
2022 --help, -h Print this help message and exit
2123 --version, -v Print the CLI version and exit
2224 --no-color Disable ANSI colors in console output
25+ \`vite:build\` Options (Passed through to Vite):
26+ --assetsInlineLimit Static asset base64 inline threshold in bytes (default: 4096) (number)
27+ --clearScreen Allow/disable clear screen when logging (boolean)
28+ --config, -c Use specified config file (string)
29+ --emptyOutDir Force empty outDir when it's outside of root (boolean)
30+ --logLevel, -l Info | warn | error | silent (string)
31+ --minify Enable/disable minification, or specify minifier to use (default: "esbuild") (boolean | "terser" | "esbuild")
32+ --mode, -m Set env mode (string)
33+ --profile Start built-in Node.js inspector
34+ --sourcemapClient Output source maps for client build (default: false) (boolean | "inline" | "hidden")
35+ --sourcemapServer Output source maps for server build (default: false) (boolean | "inline" | "hidden")
2336 \`build\` Options:
2437 --sourcemap Generate source maps for production
38+ \`vite:dev\` Options (Passed through to Vite):
39+ --clearScreen Allow/disable clear screen when logging (boolean)
40+ --config, -c Use specified config file (string)
41+ --cors Enable CORS (boolean)
42+ --force Force the optimizer to ignore the cache and re-bundle (boolean)
43+ --host Specify hostname (string)
44+ --logLevel, -l Info | warn | error | silent (string)
45+ --mode, -m Set env mode (string)
46+ --open Open browser on startup (boolean | string)
47+ --port Specify port (number)
48+ --profile Start built-in Node.js inspector
49+ --strictPort Exit if specified port is already in use (boolean)
2550 \`dev\` Options:
2651 --command, -c Command used to run your app server
2752 --manual Enable manual mode
@@ -31,7 +56,11 @@ ${colors.logoBlue("R")} ${colors.logoGreen("E")} ${colors.logoYellow(
3156 \`init\` Options:
3257 --no-delete Skip deleting the \`remix.init\` script
3358 \`routes\` Options:
59+ --config, -c Use specified Vite config file (string)
3460 --json Print the routes as JSON
61+ \`reveal\` Options:
62+ --config, -c Use specified Vite config file (string)
63+ --no-typescript Generate plain JavaScript files
3564
3665 ${ colors . heading ( "Values" ) } :
3766 - ${ colors . arg ( "projectDir" ) } The Remix project directory
@@ -46,18 +75,30 @@ ${colors.logoBlue("R")} ${colors.logoGreen("E")} ${colors.logoYellow(
4675
4776 $ remix init
4877
49- ${ colors . heading ( "Build your project" ) } :
78+ ${ colors . heading ( "Build your project (Vite)" ) } :
79+
80+ $ remix vite:build
81+
82+ ${ colors . heading ( "Run your project locally in development (Vite)" ) } :
83+
84+ $ remix vite:dev
85+
86+ ${ colors . heading ( "Build your project (Classic compiler)" ) } :
5087
5188 $ remix build
5289 $ remix build --sourcemap
5390 $ remix build my-app
5491
55- ${ colors . heading ( "Run your project locally in development" ) } :
92+ ${ colors . heading (
93+ "Run your project locally in development (Classic compiler)"
94+ ) } :
5695
5796 $ remix dev
5897 $ remix dev -c "node ./server.js"
5998
60- ${ colors . heading ( "Start your server separately and watch for changes" ) } :
99+ ${ colors . heading (
100+ "Start your server separately and watch for changes (Classic compiler)"
101+ ) } :
61102
62103 # custom server start command, for example:
63104 $ remix watch
@@ -70,13 +111,15 @@ ${colors.logoBlue("R")} ${colors.logoGreen("E")} ${colors.logoYellow(
70111 $ remix routes
71112 $ remix routes my-app
72113 $ remix routes --json
114+ $ remix routes --config vite.remix.config.ts
73115
74116 ${ colors . heading ( "Reveal the used entry point" ) } :
75117
76118 $ remix reveal entry.client
77119 $ remix reveal entry.server
78120 $ remix reveal entry.client --no-typescript
79121 $ remix reveal entry.server --no-typescript
122+ $ remix reveal entry.server --config vite.remix.config.ts
80123` ;
81124
82125/**
0 commit comments