Skip to content

Commit 776f202

Browse files
committed
Replace 'environment' to 'mode'
1 parent 8697c21 commit 776f202

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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'`

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const defaultOptions = {
99
components: {},
1010
componentOptions: {},
1111
manifestSync: ['version'],
12-
environmentsToZip: ['production']
12+
modesToZip: ['production']
1313
}
1414

1515
module.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`

0 commit comments

Comments
 (0)