Skip to content

Commit 3932b30

Browse files
committed
Correct sandbox dev ext script
1 parent 4ffe815 commit 3932b30

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

examples/sandbox/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
"license": "MIT",
66
"type": "module",
77
"scripts": {
8-
"dev": "vite --port 3000",
9-
"dev:ext": "cross-env EXT=true pnpm dev",
8+
"dev": "vite",
9+
"dev:ext": "pnpm dev -- --ext",
1010
"build": "vite build",
1111
"preview": "vite preview"
1212
},

examples/sandbox/vite.config.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ import devtools from 'solid-devtools/vite'
22
import {defineConfig} from 'vite'
33
import solid from 'vite-plugin-solid'
44

5-
const is_ext = process.env['EXT'] === 'true' || process.env['EXT'] === '1'
5+
const is_ext = process.argv.includes('--ext')
66

77
export default defineConfig(mode => {
88
const is_build = mode.command === 'build'
99

1010
return {
11+
server: {port: 3000},
1112
plugins: [
1213
devtools({
1314
autoname: true,

0 commit comments

Comments
 (0)