-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fef85eb
commit 9f45d42
Showing
6 changed files
with
2,437 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
"short_name": "Alby Hub", | ||
"name": "Alby Hub", | ||
"icons": [ | ||
{ | ||
"src": "favicon.svg", | ||
"sizes": "any", | ||
"type": "image/svg+xml" | ||
} | ||
], | ||
"start_url": ".", | ||
"display": "standalone", | ||
"theme_color": "#000000", | ||
"background_color": "#ffffff" | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,48 @@ | ||
import react from "@vitejs/plugin-react-swc"; | ||
import path from "path"; | ||
import { defineConfig } from "vite"; | ||
import tsconfigPaths from "vite-tsconfig-paths"; | ||
import { defineConfig } from 'vite'; | ||
import react from '@vitejs/plugin-react-swc'; | ||
import path from 'path'; | ||
import tsconfigPaths from 'vite-tsconfig-paths'; | ||
import { VitePWA } from 'vite-plugin-pwa'; | ||
|
||
// https://vitejs.dev/config/ | ||
export default defineConfig({ | ||
plugins: [react(), tsconfigPaths()], | ||
plugins: [ | ||
react(), | ||
tsconfigPaths(), | ||
VitePWA({ | ||
registerType: 'autoUpdate', | ||
includeAssets: ['favicon.ico', 'robots.txt', 'apple-touch-icon.png'], | ||
manifest: { | ||
short_name: 'Alby Hub', | ||
name: 'Alby Hub', | ||
icons: [ | ||
{ | ||
src: 'favicon.svg', | ||
sizes: 'any', | ||
type: 'image/svg+xml' | ||
} | ||
], | ||
start_url: '.', | ||
display: 'standalone', | ||
theme_color: '#000000', | ||
background_color: '#ffffff' | ||
}, | ||
workbox: { | ||
globPatterns: ['**/*.{js,css,html,png,svg,ico}'] | ||
} | ||
}) | ||
], | ||
server: { | ||
proxy: { | ||
"/api": { | ||
target: "http://localhost:8080", | ||
'/api': { | ||
target: 'http://localhost:8080', | ||
secure: false, | ||
}, | ||
}, | ||
}, | ||
resolve: { | ||
alias: { | ||
src: path.resolve(__dirname, "./src"), | ||
wailsjs: path.resolve(__dirname, "./wailsjs"), | ||
src: path.resolve(__dirname, './src'), | ||
wailsjs: path.resolve(__dirname, './wailsjs'), | ||
}, | ||
}, | ||
}); |
Oops, something went wrong.