2019-11-22 17:22:40 +08:00
|
|
|
module.exports = {
|
|
|
|
|
devServer: {
|
|
|
|
|
proxy: {
|
|
|
|
|
'/api': {
|
|
|
|
|
target: 'http://localhost:8000/',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
ws: true,
|
2019-11-25 23:48:01 +08:00
|
|
|
},
|
|
|
|
|
'/static/media': {
|
|
|
|
|
target: 'http://localhost:8000/',
|
|
|
|
|
changeOrigin: true,
|
2019-11-22 17:22:40 +08:00
|
|
|
},
|
2019-12-08 14:37:13 +08:00
|
|
|
'/static/js/': {
|
|
|
|
|
target: 'http://localhost:8000/',
|
|
|
|
|
changeOrigin: true,
|
|
|
|
|
},
|
2019-11-22 17:22:40 +08:00
|
|
|
},
|
|
|
|
|
},
|
2019-12-18 23:54:58 +08:00
|
|
|
pwa: {
|
|
|
|
|
name: 'Pinry Mobile',
|
|
|
|
|
appleMobileWebAppCapable: 'yes',
|
|
|
|
|
appleMobileWebAppStatusBarStyle: 'black',
|
|
|
|
|
// configure the workbox plugin
|
|
|
|
|
workboxPluginMode: 'GenerateSW',
|
|
|
|
|
iconPaths: {
|
|
|
|
|
favicon32: 'favicon.png',
|
|
|
|
|
favicon16: 'favicon.png',
|
|
|
|
|
appleTouchIcon: 'favicon.png',
|
|
|
|
|
// FIXME(winkidney): Add svg file for safari
|
|
|
|
|
// maskIcon: 'img/icons/safari-pinned-tab.svg',
|
|
|
|
|
msTileImage: 'favicon.png',
|
|
|
|
|
},
|
|
|
|
|
},
|
2019-11-22 17:22:40 +08:00
|
|
|
};
|