We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ffe815 commit 3932b30Copy full SHA for 3932b30
2 files changed
examples/sandbox/package.json
@@ -5,8 +5,8 @@
5
"license": "MIT",
6
"type": "module",
7
"scripts": {
8
- "dev": "vite --port 3000",
9
- "dev:ext": "cross-env EXT=true pnpm dev",
+ "dev": "vite",
+ "dev:ext": "pnpm dev -- --ext",
10
"build": "vite build",
11
"preview": "vite preview"
12
},
examples/sandbox/vite.config.ts
@@ -2,12 +2,13 @@ import devtools from 'solid-devtools/vite'
2
import {defineConfig} from 'vite'
3
import solid from 'vite-plugin-solid'
4
-const is_ext = process.env['EXT'] === 'true' || process.env['EXT'] === '1'
+const is_ext = process.argv.includes('--ext')
export default defineConfig(mode => {
const is_build = mode.command === 'build'
return {
+ server: {port: 3000},
plugins: [
13
devtools({
14
autoname: true,
0 commit comments