@mayashavin
@mayashavin
@mayashavin
@mayashavin
@mayashavin
SSR
Static site generator (SSG)
Single page app (SPA)
Single code base
Build
@mayashavin
@mayashavin
deploy
static site
templates
contents
nuxt generate
static HTMLs
payload file for extra client API calls
deploy
static site
@mayashavin
templates
contents
generate
build
static site
first deploy (or code changes)
contents
next deploy (only contents changed)
cached builds
@mayashavin
🔥 Performant with Vue 3 composition API
🔥 Smaller generated HTML files size
🔥 NO external client-side data API calls
🔥 Faster building time with Vitejs
🔥 Faster app
🔥 TypeScript support
@mayashavin
@mayashavin
@mayashavin
@mayashavin
@mayashavin
@mayashavin
npx nuxi init <your-landing-page-project>
yarn add -D tailwindcss postcss @tailwindcss/typography autoprefixer
yarn
/*nuxt.config.ts*/
export default defineNuxtConfig({
postcss: {
plugins: {
tailwindcss: {},
autoprefixer: {},
},
}
})
npx tailwindcss init
@mayashavin
/* ./static/main.css */
@tailwind base;
@tailwind components;
@tailwind utilities;
/* app.vue */
<script setup>
import './static/main.css'
</script>
<template>
<NuxtPage/>
</template>
@mayashavin
@mayashavin
@mayashavin
@mayashavin
@mayashavin
Senior Software Engineer
MICROSOFT
Core Team
STOREFRONT-UI
Organizer
VUEJS ISRAEL
Blogger & Book Author
@mayashavin
mayashavin.com
@mayashavin
@mayashavin
mayashavin.com
Senior Software Engineer
MICROSOFT
Core Team
STOREFRONT-UI
Organizer
VUEJS ISRAEL
Blogger & Book Author
@mayashavin
mayashavin.com
@mayashavin
mayashavin.com