diff --git a/examples/sandbox/package.json b/examples/sandbox/package.json index ec0ce5d0..e655c332 100644 --- a/examples/sandbox/package.json +++ b/examples/sandbox/package.json @@ -5,8 +5,8 @@ "license": "MIT", "type": "module", "scripts": { - "dev": "vite --port 3000", - "dev:ext": "cross-env EXT=true pnpm dev", + "dev": "vite", + "dev:ext": "pnpm dev -- --ext", "build": "vite build", "preview": "vite preview" }, diff --git a/examples/sandbox/vite.config.ts b/examples/sandbox/vite.config.ts index e08ea114..ab449ca3 100644 --- a/examples/sandbox/vite.config.ts +++ b/examples/sandbox/vite.config.ts @@ -2,12 +2,13 @@ import devtools from 'solid-devtools/vite' import {defineConfig} from 'vite' import solid from 'vite-plugin-solid' -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: [ devtools({ autoname: true,