web/vue.config.js

44 lines
1.4 KiB
JavaScript
Raw Normal View History

2021-05-24 14:19:37 +00:00
const ThreadsPlugin = require('threads-plugin');
module.exports = {
2019-11-09 17:16:08 +00:00
publicPath: '',
2020-03-04 01:51:34 +00:00
productionSourceMap: false,
2020-02-23 05:42:50 +00:00
pwa: {
2021-02-07 16:26:40 +00:00
manifestPath: "web-manifest.json",
name: "音乐解锁",
themeColor: "#4DBA87",
msTileColor: "#000000",
manifestOptions: {
start_url: "./index.html",
description: "在任何设备上解锁已购的加密音乐!",
icons: [
{
'src': './img/icons/android-chrome-192x192.png',
'sizes': '192x192',
'type': 'image/png'
},
{
'src': './img/icons/android-chrome-512x512.png',
'sizes': '512x512',
'type': 'image/png'
}
]
},
appleMobileWebAppCapable: 'yes',
iconPaths: {
faviconSVG: './img/icons/safari-pinned-tab.svg',
favicon32: './img/icons/favicon-32x32.png',
favicon16: './img/icons/favicon-16x16.png',
appleTouchIcon: './img/icons/apple-touch-icon-152x152.png',
maskIcon: './img/icons/safari-pinned-tab.svg',
msTileImage: './img/icons/msapplication-icon-144x144.png'
},
workboxPluginMode: "GenerateSW",
2020-02-23 05:42:50 +00:00
workboxOptions: {
skipWaiting: true
}
2021-05-24 14:19:37 +00:00
},
configureWebpack: {
plugins: [new ThreadsPlugin()]
2020-02-23 05:42:50 +00:00
}
};