-
-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathsnowpack.config.js
61 lines (61 loc) · 1.42 KB
/
snowpack.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
module.exports = {
routes: [
{
match: 'routes',
src: '.*',
dest: '/index.html'
}
],
mount: {
httpdocs: {
url: '/',
dot: true,
}
},
optimize: {
bundle: true,
minify: true,
target: 'es2018'
},
plugins: [
[
'snowpack-plugin-terser',
{
terserOptions: {
compress: {
arguments: true,
passes: 2,
unsafe_arrows: true,
drop_console: true,
},
},
},
],
[
'snowpack-plugin-imagemin',
{
include: [
'assets/images/*.{jpg,png}',
'resources/persons/**/*.{jpg,png}',
'resources/entities/**/*.{jpg,png}',
'resources/sources/**/*.{jpg,png}',
'resources/events/**/*.{jpg,png}',
],
plugins: [
require('imagemin-mozjpeg')({
quality: 70,
}),
require('imagemin-optipng')({
}),
],
},
],
],
packageOptions: {
},
devOptions: {
},
buildOptions: {
minify: false,
}
};