|
|
@@ -59,7 +59,23 @@ module.exports = {
|
|
|
},
|
|
|
plugins: [
|
|
|
new WebUpdateNotificationPlugin({
|
|
|
- logVersion: true
|
|
|
+ logVersion: true,
|
|
|
+ // plugin preset: zh_CN | zh_TW | en_US
|
|
|
+ locale: 'en_US',
|
|
|
+ localeData: {
|
|
|
+ en_US: {
|
|
|
+ title: '📢 system update',
|
|
|
+ description: 'System update, please refresh the page',
|
|
|
+ buttonText: 'refresh',
|
|
|
+ dismissButtonText: 'dismiss'
|
|
|
+ },
|
|
|
+ zh_CN: {
|
|
|
+ title: '📢 系统更新',
|
|
|
+ description: '系统更新,请刷新页面',
|
|
|
+ buttonText: '刷新',
|
|
|
+ dismissButtonText: '取消'
|
|
|
+ }
|
|
|
+ }
|
|
|
})
|
|
|
]
|
|
|
},
|