1、通过脚手架创建项目
npx create-nuxt-app 项目名称
2、运行
npm run dev
3、nuxt.config.js里定义应用所需的所有默认meta 标签(可选)
head: {
meta: [
{ charset: 'utf-8' },
{ name: 'viewport', content: 'width=device-width, initial-scale=1' }
],
link: [
{ rel: 'stylesheet', href: 'https://fonts.googleapis.com/css?family=Roboto' }
]
}
启动页面: