Skip to content

Commit 2bc5395

Browse files
committed
项目配置
1 parent a45bd48 commit 2bc5395

File tree

10 files changed

+4752
-3593
lines changed

10 files changed

+4752
-3593
lines changed

app.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<!DOCTYPE html>
2+
<html {{ HTML_ATTRS }}>
3+
<head {{ HEAD_ATTRS }}>
4+
{{ HEAD }}
5+
</head>
6+
<body {{ BODY_ATTRS }}>
7+
{{ APP }}
8+
</body>
9+
</html>

components/Logo.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
<template>
2-
<svg class="NuxtLogo" width="245" height="180" viewBox="0 0 452 342" xmlns="http://www.w3.org/2000/svg">
2+
<svg
3+
class="NuxtLogo"
4+
width="245"
5+
height="180"
6+
viewBox="0 0 452 342"
7+
xmlns="http://www.w3.org/2000/svg"
8+
>
39
<g fill="none" fill-rule="evenodd">
410
<path
511
d="M139 330l-1-2c-2-4-2-8-1-13H29L189 31l67 121 22-16-67-121c-1-2-9-14-22-14-6 0-15 2-22 15L5 303c-1 3-8 16-2 27 4 6 10 12 24 12h136c-14 0-21-6-24-12z"

nuxt.config.js

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,14 @@ module.exports = {
66
head: {
77
title: process.env.npm_package_name || '',
88
meta: [
9-
{ charset: 'utf-8' },
10-
{ name: 'viewport', content: 'width=device-width, initial-scale=1' },
9+
{
10+
charset: 'utf-8'
11+
},
12+
{
13+
name: 'viewport',
14+
content:
15+
'width=device-width,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no'
16+
},
1117
{
1218
hid: 'description',
1319
name: 'description',
@@ -30,7 +36,15 @@ module.exports = {
3036
/*
3137
** Plugins to load before mounting the App
3238
*/
33-
plugins: [],
39+
plugins: [
40+
{
41+
src: '~/plugins/vant.js'
42+
},
43+
{
44+
src: '~/plugins/lib-flexible.js',
45+
mode: 'client'
46+
}
47+
],
3448
/*
3549
** Nuxt.js dev-modules
3650
*/
@@ -61,6 +75,17 @@ module.exports = {
6175
/*
6276
** You can extend webpack config here
6377
*/
64-
extend(config, ctx) {}
78+
extend(config, ctx) {},
79+
postcss: {
80+
plugins: {
81+
'postcss-pxtorem': {
82+
rootValue: 37.5,
83+
propList: ['*']
84+
}
85+
},
86+
preset: {
87+
autoprefixer: true
88+
}
89+
}
6590
}
6691
}

0 commit comments

Comments
 (0)