Skip to content

Commit

Permalink
Debugging base path issue
Browse files Browse the repository at this point in the history
  • Loading branch information
invernizzi committed Feb 12, 2024
1 parent d782e73 commit 27cdfe3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 3 additions & 3 deletions docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
"dev": "vite",
"prebuild": "npm run copy-assets",
"build": "vite build",
"prebuild-github": "npm run copy-assets",
"build-github": "vite build --base=/magika/",
"postbuild-github": "cp dist/index.html dist/404.html",
"prebuild-github": "npm run copy-assets; rm -Rf dist/",
"build-github": "vite build --base=/magika/; echo 'Done';",
"postbuild-github": "mkdir -p dist_tmp; cp -R dist dist_tmp; mv dist_tmp dist/magika; cp dist/magika/index.html dist/magika/404.html;",
"preview": "vite preview",
"lint": "eslint . --fix --ignore-path .gitignore",
"code-format": "prettier --write ."
Expand Down
6 changes: 5 additions & 1 deletion docs/vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { defineConfig } from "vite";
import { fileURLToPath, URL } from "node:url";

export default defineConfig({
base: '/magika',
base: '/magika/',
plugins: [
vue({ template: { transformAssetUrls } }),
vuetify({
Expand All @@ -33,6 +33,10 @@ export default defineConfig({
}),
],
define: { "process.env": {} },
// https://github.com/vitejs/vite/issues/2433
build: {
sourcemap: false,
},
resolve: {
assetsInclude: ["**/*.md", "**/*.html"],
alias: {
Expand Down

0 comments on commit 27cdfe3

Please sign in to comment.