Skip to content

Commit

Permalink
chore(zip): 打包压缩包代码调整
Browse files Browse the repository at this point in the history
  • Loading branch information
Light authored and Light committed Mar 21, 2021
1 parent e74f9e6 commit c10f272
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,21 +91,12 @@ module.exports = {
}

if (zipMode) {
if (chromeMode) {
config.plugins.push(
new ZipWebpackPlugin({
path: path.resolve('archive'),
filename: `${packageInfo.name}_chrome_v${packageInfo.version}.zip`,
})
);
} else {
config.plugins.push(
new ZipWebpackPlugin({
path: path.resolve('archive'),
filename: `${packageInfo.name}_firefox_v${packageInfo.version}.zip`,
})
);
}
config.plugins.push(
new ZipWebpackPlugin({
path: path.resolve('archive'),
filename: `${packageInfo.name}_${chromeMode ? 'chrome' : 'firefox'}_v${packageInfo.version}.zip`,
})
);
}

// 关闭 webpack 的性能提示
Expand Down

0 comments on commit c10f272

Please sign in to comment.