forked from htmlacademy/accelerator-project-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
vite.config.js.timestamp-1731065057293-cd7cc9b7e93fc.mjs
75 lines (75 loc) · 6.57 KB
/
vite.config.js.timestamp-1731065057293-cd7cc9b7e93fc.mjs
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
// vite.config.js
import { ViteImageOptimizer } from "file:///F:/GIT/accelerator1/node_modules/vite-plugin-image-optimizer/dist/index.mjs";
import VitePluginSvgSpritemap from "file:///F:/GIT/accelerator1/node_modules/@spiriit/vite-plugin-svg-spritemap/dist/index.js";
var vite_config_default = {
plugins: [
VitePluginSvgSpritemap("source/img/sprite/*.svg", {
styles: false,
injectSVGOnDev: true
}),
// input https://www.npmjs.com/package/html-minifier-terser options
// ViteMinifyPlugin({}),
ViteImageOptimizer({
test: /\.(jpe?g|png|svg)$/i,
includePublic: false,
logStats: true,
ansiColors: true,
svg: {
multipass: true,
plugins: [
{
name: "preset-default",
params: {
overrides: {
cleanupNumericValues: false,
convertPathData: {
floatPrecision: 2,
forceAbsolutePath: false,
utilizeAbsolute: false
},
removeViewBox: false,
// https://github.com/svg/svgo/issues/1128
cleanupIds: false
}
}
},
"removeDimensions"
]
},
png: {
// https://sharp.pixelplumbing.com/api-output#png
quality: 80,
palette: true
},
jpeg: {
// https://sharp.pixelplumbing.com/api-output#jpeg
quality: 80,
progressive: true
},
jpg: {
// https://sharp.pixelplumbing.com/api-output#jpeg
quality: 80,
progressive: true
},
// Cache assets in cacheLocation. When enabled, reads and writes asset files with their hash suffix from the specified path.
cache: true,
cacheLocation: "./.cache"
})
],
css: {
devSourcemap: true
},
publicDir: "public",
root: "./source",
build: {
outDir: "../dist"
},
base: "./",
server: {
port: 3e3
}
};
export {
vite_config_default as default
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bmlmaWVyLXRlcnNlciBvcHRpb25zXHJcbiAgICAvLyBWaXRlTWluaWZ5UGx1Z2luKHt9KSxcclxuICAgIFZpdGVJbWFnZU9wdGltaXplcih7XHJcbiAgICAgIHRlc3Q6IC9cXC4oanBlP2d8cG5nfHN2ZykkL2ksXHJcbiAgICAgIGluY2x1ZGVQdWJsaWM6IGZhbHNlLFxyXG4gICAgICBsb2dTdGF0czogdHJ1ZSxcclxuICAgICAgYW5zaUNvbG9yczogdHJ1ZSxcclxuICAgICAgc3ZnOiB7XHJcbiAgICAgICAgbXVsdGlwYXNzOiB0cnVlLFxyXG4gICAgICAgIHBsdWdpbnM6IFtcclxuICAgICAgICAgIHtcclxuICAgICAgICAgICAgbmFtZTogJ3ByZXNldC1kZWZhdWx0JyxcclxuICAgICAgICAgICAgcGFyYW1zOiB7XHJcbiAgICAgICAgICAgICAgb3ZlcnJpZGVzOiB7XHJcbiAgICAgICAgICAgICAgICBjbGVhbnVwTnVtZXJpY1ZhbHVlczogZmFsc2UsXHJcbiAgICAgICAgICAgICAgICBjb252ZXJ0UGF0aERhdGE6IHtcclxuICAgICAgICAgICAgICAgICAgZmxvYXRQcmVjaXNpb246IDIsXHJcbiAgICAgICAgICAgICAgICAgIGZvcmNlQWJzb2x1dGVQYXRoOiBmYWxzZSxcclxuICAgICAgICAgICAgICAgICAgdXRpbGl6ZUFic29sdXRlOiBmYWxzZSxcclxuICAgICAgICAgICAgICAgIH0sXHJcbiAgICAgICAgICAgICAgICByZW1vdmVWaWV3Qm94OiBmYWxzZSwgLy8gaHR0cHM6Ly9naXRodWIuY29tL3N2Zy9zdmdvL2lzc3Vlcy8xMTI4XHJcbiAgICAgICAgICAgICAgICBjbGVhbnVwSWRzOiBmYWxzZSxcclxuICAgICAgICAgICAgICB9LFxyXG4gICAgICAgICAgICB9LFxyXG4gICAgICAgICAgfSxcclxuICAgICAgICAgICdyZW1vdmVEaW1lbnNpb25zJyxcclxuICAgICAgICBdLFxyXG4gICAgICB9LFx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