You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 24, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+13-90Lines changed: 13 additions & 90 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,66 +41,24 @@ Configuration options can be set globally in `custom` property and inside each f
41
41
#### Global
42
42
43
43
* **debug** (default `false`) - When debug is set to `true` it won't remove `prefix` folder and will generate debug output at the end of package creation.
44
-
45
-
```yml
46
-
custom:
47
-
optimize:
48
-
debug: true
49
-
```
50
-
51
44
* **exclude** (default `['aws-sdk']`) - Array of modules or paths that will be excluded.
52
-
53
-
```yml
54
-
custom:
55
-
optimize:
56
-
exclude: ['ajv']
57
-
```
58
-
59
45
* **extensions** (default `['.js', '.json']`) - Array of optional extra extensions modules that will be included.
60
-
61
-
```yml
62
-
custom:
63
-
optimize:
64
-
extensions: ['.extension']
65
-
```
66
-
67
-
* **global** (default `true`) - When global is set to `false` transforms won't be run inside `node_modules`.
68
-
69
-
```yml
70
-
custom:
71
-
optimize:
72
-
global: false`
73
-
```
74
-
46
+
* **global** (default `false`) - When global is set to `true` transforms will run inside `node_modules`.
75
47
* **ignore** - Array of modules or paths that won't be transformed with Babelify and Uglify.
76
-
77
-
```yml
78
-
custom:
79
-
optimize:
80
-
ignore: ['ajv']
81
-
```
82
-
83
48
* **minify** (default `true`) - When minify is set to `false` Uglify transform won't run.
84
-
85
-
```yml
86
-
custom:
87
-
optimize:
88
-
minify: false
89
-
```
90
-
91
49
* **prefix** (default `_optimize`) - Folder to output bundle.
92
-
93
-
```yml
94
-
custom:
95
-
optimize:
96
-
prefix: 'dist'
97
-
```
98
-
99
50
* **presets** (default `['es2015']`) - Array of Babel presets.
100
51
101
52
```yml
102
53
custom:
103
54
optimize:
55
+
debug: true
56
+
exclude: ['ajv']
57
+
extensions: ['.extension']
58
+
global: true
59
+
ignore: ['ajv']
60
+
minify: false
61
+
prefix: 'dist'
104
62
presets: ['es2016']
105
63
```
106
64
@@ -115,56 +73,21 @@ functions:
115
73
```
116
74
117
75
* **exclude** - Array of modules or paths that will be excluded.
118
-
119
-
```yml
120
-
functions:
121
-
hello:
122
-
optimize:
123
-
exclude: ['ajv']
124
-
```
125
-
126
76
* **extensions** - Array of optional extra extensions modules that will be included.
77
+
* **global** - When global is set to `true` transforms will run inside `node_modules`.
78
+
* **ignore** - Array of modules or paths that won't be transformed with Babelify and Uglify.
79
+
* **minify** - When minify is set to `false` Uglify transform won't run.
80
+
* **presets** - Array of Babel presets.
127
81
128
82
```yml
129
83
functions:
130
84
hello:
131
85
optimize:
86
+
exclude: ['ajv']
132
87
extensions: ['.extension']
133
-
```
134
-
135
-
* **global** - When global is set to `false` transforms won't be run inside `node_modules`.
136
-
137
-
```yml
138
-
functions:
139
-
hello:
140
-
optimize:
141
88
global: false
142
-
```
143
-
144
-
* **ignore** - Array of modules or paths that won't be transformed with Babelify and Uglify.
145
-
146
-
```yml
147
-
functions:
148
-
hello:
149
-
optimize:
150
89
ignore: ['ajv']
151
-
```
152
-
153
-
* **minify** - When minify is set to `false` Uglify transform won't run.
0 commit comments