Pastebin
Retrouvez, créez et partagez vos snippets en temps réel.
Rechercher un Pastebin
Aucun paste trouvé.
Créer un paste
Pastebin
Blog
compose
# Nettoyage préventif rm -rf * .gitignore # Création du projet React + Vite npm create vite@latest . -- --template react npm install npm install lucide-react npm install -D tailwindcss postcss autoprefixer npx tailwindcss init -p # Configuration de Tailwind cat <<EOF > tailwind.config.js /** @type {import('tailwindcss').Config} */ export default { content: [ "./index.html", "./src/**/*.{js,ts,jsx,tsx}", ], theme: { extend: {}, }, plugins: [], } EOF # Configuration du CSS cat <<EOF > src/index.css @tailwind base; @tailwind components; @tailwind utilities; EOF # Configuration du Serveur (pour accès externe) cat <<EOF > vite.config.js import { defineConfig } from 'vite' import react from '@vitejs/plugin-react' // https://vitejs.dev/config/ export default defineConfig({ plugins: [react()], server: { host: true, port: 5173, watch: { usePolling: true } } }) EOF
Créé il y a 2 semaines.