Skip to content

Commit

Permalink
added logic to copy icon.png
Browse files Browse the repository at this point in the history
  • Loading branch information
matthme committed Jan 22, 2024
1 parent 8a54db9 commit ffcd2e5
Show file tree
Hide file tree
Showing 4 changed files with 1,724 additions and 768 deletions.
21 changes: 20 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"build": "vite build",
"lint": "eslint --ext .ts,.html . --ignore-path .gitignore && prettier \"**/*.ts\" --check --ignore-path .gitignore",
"format": "eslint --ext .ts,.html . --fix --ignore-path .gitignore && prettier \"**/*.ts\" --write --ignore-path .gitignore",
"package": "npm run build && cd dist && bestzip ../dist.zip *"
"package": "rimraf dist && rimraf dist.zip && npm run build && cd dist && bestzip ../dist.zip *"
},
"dependencies": {
"@fontsource/pacifico": "5.0.8",
Expand Down Expand Up @@ -41,6 +41,7 @@
"rimraf": "^3.0.2",
"vite": "^4.0.0",
"vite-plugin-checker": "^0.5.3",
"vite-plugin-static-copy": "0.16.0",
"typescript": "^4.5.5"
},
"eslintConfig": {
Expand Down
9 changes: 9 additions & 0 deletions ui/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { defineConfig } from 'vite';
import checker from 'vite-plugin-checker';
import { viteStaticCopy } from 'vite-plugin-static-copy'

// https://vitejs.dev/config/
export default defineConfig({
Expand All @@ -16,5 +17,13 @@ export default defineConfig({
// lintCommand: 'eslint --ext .ts,.html . --ignore-path .gitignore',
// },
}),
viteStaticCopy({
targets: [
{
src: "icon.png",
dest: ".",
}
]
})
],
});
Loading

0 comments on commit ffcd2e5

Please sign in to comment.