Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions main/docs/quickstart/spa/vanillajs/index.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -647,14 +647,14 @@ If the existing style.css file is large or malformed, create a new temporary CSS
}

2.5: Update package.json with development script
Update your package.json to include a development script:
Update your package.json to include development, build, and preview scripts. Replace the entire contents of package.json:

cat > package.json << 'EOF'
{
"name": "auth0-vanillajs",
"version": "1.0.0",
"type": "module",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
Expand All @@ -666,6 +666,7 @@ Update your package.json to include a development script:
"vite": "^5.0.0"
}
}
EOF

2.6: Start the development server

Expand Down Expand Up @@ -835,10 +836,10 @@ This quickstart shows how to add Auth0 authentication to a vanilla JavaScript ap
mkdir auth0-vanillajs && cd auth0-vanillajs
```

Initialize the project and install a local development server
Initialize the project, install a local development server, and configure scripts

```shellscript
npm init -y && npm install --save-dev vite
npm init -y && npm install --save-dev vite && npm pkg set scripts.dev="vite" scripts.build="vite build" scripts.preview="vite preview" type="module"
```

Create the basic project structure
Expand Down
Loading