-
-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathsnowpack.config.js
More file actions
58 lines (58 loc) · 1.06 KB
/
snowpack.config.js
File metadata and controls
58 lines (58 loc) · 1.06 KB
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
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,
},
}