-
Notifications
You must be signed in to change notification settings - Fork 0
/
vue.config.js
137 lines (136 loc) · 6.94 KB
/
vue.config.js
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
const {defineConfig} = require('@vue/cli-service')
// const HtmlWebpackPlugin = require('html-webpack-plugin')
const CopyWebpackPlugin = require('copy-webpack-plugin')
const HtmlWebpackTagsPlugin = require('html-webpack-tags-plugin')
const FaviconsWebpackPlugin = require('favicons-webpack-plugin')
const SitemapPlugin = require('sitemap-webpack-plugin').default;
module.exports = defineConfig({
transpileDependencies: true,
pages: {
index: {
entry: 'src/main.ts',
template: 'public/index.html',
filename: 'index.html',
title: 'Portfolio',
}
},
configureWebpack: {
plugins: [
new CopyWebpackPlugin({ //СУПЕР-ВАЖНАЯ штука для ссылок на файлы (pdf или картинки), расположенные на самом сервере!!!
patterns: [
{
from: "src/assets",
to: "assets"
},
{
from: "src/assets/analytics/robots.txt",
to: "",
toType: "dir",
force: true
}
]
}),
new HtmlWebpackTagsPlugin({
// links: [
// {
// path: 'https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css',
// attributes: {
// rel: 'stylesheet'
// },
// },
// ],
scripts: [
'https://www.googletagmanager.com/gtag/js?id=G-RZHR947YVN',
'/assets/analytics/ganal.js',
'https://unpkg.com/@codersrank/summary@0.9.13/codersrank-summary.min.js',
'https://unpkg.com/@codersrank/skills-chart@0.9.21/codersrank-skills-chart.min.js'
],
append: true,
publicPath: false,
useHash: false,
metas: [
{attributes: {name: 'google-site-verification', content: 'Gq9vrXtN91P1JteGFo-xrlLKT0PR8u-4P4xs21oUr8Y'}},
{attributes: {name: 'description', content: 'Anatolii Zorin\'s Portfolio with all diplomas, certificates, interesting projects and a detailed description of the experience gained at previous jobs.'}},
{attributes: {property: 'og:title', content: 'Portfolio'}},
{attributes: {property: 'twitter:title', content: 'Portfolio'}},
{attributes: {property: 'og:description', content: 'Anatolii Zorin\'s Portfolio'}},
{attributes: {property: 'twitter:description', content: 'Anatolii Zorin\'s Portfolio'}},
{attributes: {property: 'og:image', content: 'https://zorin.expert/assets/ogimage/all/image_all.jpg'}},
{attributes: {property: 'twitter:image', content: 'https://zorin.expert/assets/ogimage/all/image_all.jpg'}},
{attributes: {property: 'og:url', content: 'https://Zorin.Expert'}},
{attributes: {property: 'og:type', content: 'website'}},
{attributes: {property: 'og:site_name', content: 'https://Zorin.Expert'}},
{attributes: {property: 'twitter:card', content: 'summary_large_image'}}
]
}),
// new HtmlWebpackPlugin({
// template: 'public/index.html',
// title: 'Portfolio'
// meta: {
// 'google-site-verification': 'Gq9vrXtN91P1JteGFo-xrlLKT0PR8u-4P4xs21oUr8Y',
// }
// // favicon: './public/favicon.png',
// }),
new FaviconsWebpackPlugin({
logo: './src/assets/img/favbig.png',
mode: 'webapp',
devMode: 'webapp',
outputPath: 'assets/favicon/', // Куда будут на сервере скидываться созданные favicon-ки
prefix: 'assets/favicon/', // Этот префикс для файла index.html, чтобы правильно прописать пути иконок с сервера!
manifest: './src/assets/manifest/manifest.webmanifest',
favicons: {
appName: 'Portfolio',
appDescription: 'Anatolii Zorin\'s Portfolio',
developerName: 'Zorger',
developerURL: null
}
}),
new SitemapPlugin({
base: 'https://zorin.expert', // Базовый URL моего сайта
paths: [
{ path: '/', priority: 1, changefreq: 'always' },
{ path: '/projects', priority: 1, changefreq: 'daily' },
{ path: '/education', priority: 1, changefreq: 'daily' },
{ path: '/experience', priority: 1, changefreq: 'daily' },
{ path: '/skills', priority: 1, changefreq: 'daily' },
{ path: '/certificates', priority: 1, changefreq: 'always' },
{ path: '/certificates/backend', priority: 0.9, changefreq: 'daily' },
{ path: '/certificates/frontend', priority: 0.9, changefreq: 'daily' },
{ path: '/certificates/database', priority: 0.9, changefreq: 'daily' },
{ path: '/certificates/designer', priority: 0.9, changefreq: 'daily' },
{ path: '/certificates/pm', priority: 0.9, changefreq: 'daily' },
{ path: '/certificates/english', priority: 0.9, changefreq: 'daily' },
{ path: '/certificates/other', priority: 0.9, changefreq: 'daily' },
{ path: '/about', priority: 1, changefreq: 'always' },
{ path: '/extra', priority: 1, changefreq: 'always' },
{ path: '/extra/calculator', priority: 0.8, changefreq: 'daily' },
{ path: '/extra/cryptocur', priority: 0.8, changefreq: 'daily' },
{ path: '/extra/graphics', priority: 0.8, changefreq: 'daily' },
{ path: '/extra/graphics/cube', priority: 0.8, changefreq: 'daily' },
{ path: '/extra/graphics/cubejs', priority: 0.8, changefreq: 'daily' },
{ path: '/extra/graphics/cube3d', priority: 0.8, changefreq: 'daily' },
{ path: '/extra/graphics/creep3d', priority: 0.8, changefreq: 'daily' },
{ path: '/extra/graphics/configurator3d', priority: 0.8, changefreq: 'daily' },
{ path: '/extra/rates', priority: 0.8, changefreq: 'daily' },
{ path: '/extra/games', priority: 0.8, changefreq: 'daily' },
{ path: '/extra/games/memory', priority: 0.7, changefreq: 'daily' },
{ path: '/extra/notes', priority: 0.8, changefreq: 'daily' },
{ path: '/extra/todo', priority: 0.8, changefreq: 'daily' },
{ path: '/extra/weather', priority: 0.8, changefreq: 'daily' },
{ path: '/extra/tasks', priority: 0.6, changefreq: 'daily' },
{ path: '/extra/tasks/palindrome', priority: 0.5, changefreq: 'weekly' },
{ path: '/extra/tasks/fizzbuzz', priority: 0.5, changefreq: 'weekly' },
{ path: '/extra/tasks/anagram', priority: 0.5, changefreq: 'weekly' },
{ path: '/extra/tasks/findvowels', priority: 0.5, changefreq: 'weekly' },
{ path: '/extra/tasks/fibonacci', priority: 0.5, changefreq: 'weekly' },
{ path: '/extra/ai', priority: 1, changefreq: 'always' },
{ path: '/extra/ai/picsum', priority: 1, changefreq: 'always' },
{ path: '/extra/ai/pixabay', priority: 1, changefreq: 'always' },
],
options: {
skipgzip: true
},
}),
]
}
})