Skip to content

Commit

Permalink
v 1.2.1 PWA Config
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri-val committed Apr 22, 2022
1 parent 032c9b5 commit 75d4076
Show file tree
Hide file tree
Showing 3 changed files with 2,115 additions and 25 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "dolibarr-tracker",
"license": "GPL-3.0",
"version": "1.2.0",
"version": "1.2.1",
"scripts": {
"build": "vite build",
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs --fix --ignore-path .gitignore",
Expand Down Expand Up @@ -31,6 +31,7 @@
"material-design-icons-iconfont": "^6.6.0",
"prettier": "^2.5.1",
"vite": "^2.9.1",
"vite-plugin-pwa": "^0.12.0",
"vue-cli-plugin-vuestic-ui": "~1.0.5"
}
}
41 changes: 40 additions & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,49 @@
import { defineConfig } from "vite";
import vue from "@vitejs/plugin-vue";
import path from "path";
import { VitePWA } from "vite-plugin-pwa";


const pwaConfig = {
includeAssets: [
"favicon.svg",
"favicon.ico",
"robots.txt",
"apple-touch-icon.png",
],
manifest: {
name: "Dolibarr Tracker",
short_name: "DT",
description:
"Web interface for quick time tracking by tasks in the Dolibarr ERP system",
theme_color: "#2c82e0",
icons: [
{
src: "android-chrome-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "android-chrome-512x512.png",
sizes: "512x512",
type: "image/png",
},
{
src: "android-chrome-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "any maskable",
},
],
},
}

// https://vitejs.dev/config/
export default defineConfig({
plugins: [vue()],
plugins: [
vue(),
VitePWA(pwaConfig),
],
base: "/dolibarr-tracker",
build: {
rollupOptions: {
Expand Down
Loading

0 comments on commit 75d4076

Please sign in to comment.