These conventions outline our development standards for Next.js projects, specifically focusing on projects using the app router for components and the pages router for API calls.
- Prioritize package usage over custom code
import { defineNuxtConfig } from 'nuxt' | |
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config | |
export default defineNuxtConfig({ | |
css: ['~/assets/css/tailwind.scss'], | |
build: { | |
postcss: { | |
postcssOptions: require('./postcss.config.js'), | |
} | |
} |
module.exports = { | |
plugins: { | |
tailwindcss: {}, | |
autoprefixer: {}, | |
}, | |
} |
import {defineNuxtConfig} from 'nuxt' | |
// https://v3.nuxtjs.org/docs/directory-structure/nuxt.config | |
export default defineNuxtConfig({ | |
modules: ['@nuxtjs/tailwindcss'], | |
css: ['~/assets/css/tailwind.scss'], | |
build: { | |
postcss: { | |
postcssOptions: { | |
plugins: { |
const SIMULATIONS = 1000000; | |
let villainDeaths = 0; | |
for (let i = 0; i < SIMULATIONS; i++) { | |
let villainLives = 8; | |
let minionLives = [2, 6, 5]; | |
for (let j = 0; j < 5; j++) { | |
let targets = []; | |
if (villainLives > 0) { |