-
Notifications
You must be signed in to change notification settings - Fork 0
/
nuxt.config.ts
executable file
·88 lines (86 loc) · 1.97 KB
/
nuxt.config.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
import path from "path";
import NuxtConfiguration from "nuxt";
import webpack from "webpack";
const config: NuxtConfiguration = {
mode: "spa",
head: {
title: "starter",
meta: [
{ charset: "utf-8" },
{ name: "viewport", content: "width=device-width, initial-scale=1" },
{ hid: "description", name: "description", content: "Nuxt TS project" }
],
script: [],
link: [
{ rel: "icon", type: "image/x-icon", href: "/favicon.ico" },
{
rel: "stylesheet",
href:
"https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css"
},
{
rel: "stylesheet",
href: "https://fonts.googleapis.com/icon?family=Material+Icons"
}
]
},
// loading: { color: '#3B8070' },
css: ["~/assets/scss/app.scss"],
plugins: [
"~/plugins/axios",
"~/plugins/helpers",
"~/plugins/firebase",
"~/plugins/fireauth",
"~/plugins/antd-ui"
],
modules: [
"@nuxtjs/axios",
"@nuxtjs/moment",
"@nuxtjs/auth",
"@nuxtjs/vendor"
],
vendor: ["debounce", "ant-design-vue"],
build: {
// extractCSS: true,
// hardSource: true,
extend(config, ctx) {},
loaders: [
{
test: /\.css$/,
loader: "vue-style-loader!css-loader"
},
{
test: /\.(woff2?|eot|ttf|otf)(\?.*)?$/,
loader: "url",
query: {
limit: 10000,
name: path.posix.join("/assets", "fonts/[name].[hash:7].[ext]")
}
}
],
plugins: [
new webpack.ProvidePlugin({
$: "jquery",
jQuery: "jquery"
})
],
babel: {
plugins: [
["@babel/plugin-proposal-decorators", { legacy: true }],
["@babel/plugin-proposal-class-properties", { loose: true }]
]
}
},
loading: {
color: "#80DDC8",
height: "2px"
},
// auth: {
// plugins: ["~/plugins/auth"],
// strategies: {}
// },
router: {
middleware: "router-auth"
}
};
export default config;