File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -124,11 +124,11 @@ module.exports = {
124
124
125
125
Currently, the only supported keys are ` version ` and ` description ` .
126
126
127
- - ** environmentsToZip **
127
+ - ** modesToZip **
128
128
- Type: ` Array<string> `
129
129
- Default: ` ['production'] `
130
130
131
- Array containing names of environments in which zipping up will trigger after build.
131
+ Array containing names of mode in which zipping up will trigger after build.
132
132
133
133
- ** api**
134
134
- Type: ` 'chrome'|'browser' `
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const defaultOptions = {
9
9
components : { } ,
10
10
componentOptions : { } ,
11
11
manifestSync : [ 'version' ] ,
12
- environmentsToZip : [ 'production' ]
12
+ modesToZip : [ 'production' ]
13
13
}
14
14
15
15
module . exports = ( api , options ) => {
@@ -106,7 +106,7 @@ module.exports = (api, options) => {
106
106
}
107
107
} ] ) )
108
108
109
- if ( pluginOptions . environmentsToZip . includes ( api . service . mode ) ) {
109
+ if ( pluginOptions . modesToZip . includes ( api . service . mode ) ) {
110
110
webpackConfig . plugins . push ( new ZipPlugin ( {
111
111
path : api . resolve ( `${ options . outputDir || 'dist' } -zip` ) ,
112
112
filename : `${ packageJson . name } -v${ packageJson . version } -${ api . service . mode } .zip`
You can’t perform that action at this time.
0 commit comments