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 = {
124124
125125 Currently, the only supported keys are ` version ` and ` description ` .
126126
127- - ** environmentsToZip **
127+ - ** modesToZip **
128128 - Type: ` Array<string> `
129129 - Default: ` ['production'] `
130130
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.
132132
133133- ** api**
134134 - Type: ` 'chrome'|'browser' `
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ const defaultOptions = {
99 components : { } ,
1010 componentOptions : { } ,
1111 manifestSync : [ 'version' ] ,
12- environmentsToZip : [ 'production' ]
12+ modesToZip : [ 'production' ]
1313}
1414
1515module . exports = ( api , options ) => {
@@ -106,7 +106,7 @@ module.exports = (api, options) => {
106106 }
107107 } ] ) )
108108
109- if ( pluginOptions . environmentsToZip . includes ( api . service . mode ) ) {
109+ if ( pluginOptions . modesToZip . includes ( api . service . mode ) ) {
110110 webpackConfig . plugins . push ( new ZipPlugin ( {
111111 path : api . resolve ( `${ options . outputDir || 'dist' } -zip` ) ,
112112 filename : `${ packageJson . name } -v${ packageJson . version } -${ api . service . mode } .zip`
You can’t perform that action at this time.
0 commit comments