-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
local.yml
128 lines (106 loc) · 2.2 KB
/
local.yml
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
# Build settings
# build output
outputDir: dist
# working directory
wsDir:
static: static
html: html
css: css
yaml2json: yaml2json
img: img
js: js
# directory configuration
# array is hierarchy
deployDir:
json: [common, data]
img: [common, img]
css: [common, css]
js: [common, js]
# build option
options:
html:
minify: false
pug:
# php file output
php: false
# lint configuration file
lint: '.pug-lintrc.json'
# lint configuration file for using by vue
vuePugLint: 'config-vue/.pug-lintrc.json'
css:
minify: false
postcss:
# using node-css-mqpacker for postcss
mqpacker: true
js:
minify: true
# If minify is true to enabled
terser:
parallel: true
extractComments: false
terserOptions:
compress:
drop_console: true
# tsconfig.json which is specified at the time of webpack build
tsconfig: tsconfig.json
# file names that combine the same logic
splitFilename: assets
sourceMap: true
# The ESLint file to specify when building webpack
eslint: '.eslintrc'
json:
minify: true
# file-loader settings
fileLoader:
html:
# false is not use a file-loader
use: true
# adding 6-digit hash for image path.
hash: true
target:
- tag: img
attribute: src
type: src
- tag: img
attribute: srcset
type: srcset
- tag: img
attribute: data-src
type: src
- tag: img
attribute: data-srcset
type: srcset
- tag: source
attribute: src
type: src
css:
use: true
hash: true
js:
use: true
hash: true
vue:
use: true
# vue-loader transformAssetUrls
loader:
video: [src, poster]
source: src
img: src
webp:
- target: [src, img]
ext:
png: true
jpg: true
gif: true
options:
quality: 70
gifOptions:
lossy: true
deleteBefore: true
- target: [src, static]
ext:
png: true
jpg: true
gif: true
output: [dist, common, img]
deleteBefore: false