From 3932b30614adc31df4adf8a7f4960eb8c54bc7e6 Mon Sep 17 00:00:00 2001 From: Damian Tarnawski Date: Sun, 22 Dec 2024 21:01:44 +0100 Subject: [PATCH] Correct sandbox dev ext script --- examples/sandbox/package.json | 4 ++-- examples/sandbox/vite.config.ts | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) 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,