mirror of
https://github.com/CzBiX/qb-web.git
synced 2026-02-03 10:34:23 +08:00
41 lines
775 B
JavaScript
41 lines
775 B
JavaScript
module.exports = {
|
|
outputDir: 'dist/public',
|
|
publicPath: './',
|
|
|
|
pwa: {
|
|
// name: "qb-web",
|
|
themeColor: "#4d8ad5",
|
|
msTileColor: "#4d8ad5",
|
|
appleMobileWebAppCapable: 'yes',
|
|
|
|
iconPaths: {
|
|
favicon32: 'img/icons/favicon-32x32.png',
|
|
favicon16: 'img/icons/favicon-16x16.png',
|
|
appleTouchIcon: 'img/icons/apple-touch-icon.png',
|
|
maskIcon: null,
|
|
msTileImage: null,
|
|
},
|
|
},
|
|
|
|
devServer: {
|
|
port: 8000,
|
|
proxy: {
|
|
'/api': {
|
|
target: 'http://qb.test:8080',
|
|
},
|
|
},
|
|
},
|
|
|
|
chainWebpack(config) {
|
|
config.plugin('define').tap(args => {
|
|
let arg = args[0]
|
|
arg = {
|
|
...arg,
|
|
'process.env.GIT_TAG': JSON.stringify(process.env.GIT_TAG),
|
|
}
|
|
|
|
return [arg]
|
|
})
|
|
},
|
|
};
|