Skip to content

Commit

Permalink
Correct sandbox dev ext script
Browse files Browse the repository at this point in the history
  • Loading branch information
thetarnav committed Dec 22, 2024
1 parent 4ffe815 commit 3932b30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions examples/sandbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down
3 changes: 2 additions & 1 deletion examples/sandbox/vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 3932b30

Please sign in to comment.